com.wiley.posa3.resourcelifecyclemanager
Class SecurityToken

java.lang.Object
  extended bycom.wiley.posa3.resourcelifecyclemanager.SecurityToken
All Implemented Interfaces:
EvictionInterface, ManagedResource, Resource

public class SecurityToken
extends java.lang.Object
implements ManagedResource, EvictionInterface

SecurityToken is a resource that implements both ManagedResource and EvictionInteface.

Version:
1.0
Author:
Michael Kircher, Prashant Jain

Constructor Summary
SecurityToken()
          Default Constructor
 
Method Summary
 void beforeEviction()
          The beforeEviction() method serves as a hook method that can be called by the Evictor before it evicts an object.
 Identity getId()
          Get the identity of this resource
 java.lang.Object info()
          The info() method is used by the Evictor to extract strategy-specific information from the object, to determine whether or not to evict it.
 boolean isEvictable()
          The method isEvictable() is used to determine whether this scurity token is evictable.
 void method1()
          Some generic method.
 void method2()
          Some generic method.
 ResourceType type()
          Get the type of resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityToken

public SecurityToken()
Default Constructor

Method Detail

getId

public Identity getId()
Get the identity of this resource

Specified by:
getId in interface Resource
Returns:
The identity of this resource

type

public ResourceType type()
Get the type of resource.

Specified by:
type in interface ManagedResource
Returns:
ResourceType the type of resource, which is ResourceType.SECURITY_TOKEN;

isEvictable

public boolean isEvictable()
The method isEvictable() is used to determine whether this scurity token is evictable.

Specified by:
isEvictable in interface EvictionInterface
Returns:
boolan true if the security token is evictable, false otherwise

beforeEviction

public void beforeEviction()
The beforeEviction() method serves as a hook method that can be called by the Evictor before it evicts an object. This gives the security token a chance to release any resources it may have acquired.

Specified by:
beforeEviction in interface EvictionInterface

info

public java.lang.Object info()
The info() method is used by the Evictor to extract strategy-specific information from the object, to determine whether or not to evict it.

Specified by:
info in interface EvictionInterface
Returns:
Object strategy-specific information

method1

public void method1()
Some generic method.

Specified by:
method1 in interface Resource

method2

public void method2()
Some generic method.

Specified by:
method2 in interface Resource


Copyright 2004 John Wiley and Sons. All Rights Reserved.