|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WSRFInstance
Lifecycle methods and helper methods for WS-Resources.
These are called by the hosting environment to initialise, destroy or persist
WS-Resource instances.
To persist a WSRFInstance, the hosting environment calls passivate(), and
stores the resulting Map.
WSRFInstanceImpl| Method Summary | |
|---|---|
void |
activate(Map<String,Serializable> context)
Called when the instance is reloaded into memory from persistent storage This nay occur quite often, so users of this class should try not to perform expensive operations in this method. |
void |
clearChangeFlag()
clear the "dirty" flag, called by the container after the resource has been persisted |
void |
clearSecurityContext()
|
void |
destroy()
perform resource-specific clean up operations Called when the resource is destroyed, specifically, this will be executed : when external clients use the ResourceLifetime interface to destroy a WS-Resource when the lifetime expires and the container destroys the resource |
Map<String,Object> |
getSecurityContext()
|
String |
getServiceName()
return the service name |
Calendar |
getTerminationTime()
get the termination time (expiry date) for the instance. |
String |
getUniqueID()
get the unique ID of this WSRF instance |
boolean |
hasChanged()
Has the resource changed? |
void |
initialise(String serviceName,
Map<String,Object> initobjs)
called when the resource is first created and initialised by the hosting environment |
boolean |
isDestroyed()
has the resource been destroyed? |
boolean |
isExpired()
Is this resource expired and can be removed? |
Map<String,Serializable> |
passivate()
called when the instance is persisted |
void |
postActivate()
post-activation hook this is called when the instance is reloaded into memory, after activate() has been called and the access control check has been passed |
void |
processMessages(PullPoint messageIterator)
Called when messages are available for this WSRF instance which should be processed. |
void |
setHome(Home home)
set the home |
void |
setSecurityContext(Map<String,Object> ctx)
|
void |
setServiceName(String serviceName)
set the service name |
void |
setUniqueID(String id)
set the unique ID of this WSRF instance |
| Method Detail |
|---|
Map<String,Object> getSecurityContext()
void setSecurityContext(Map<String,Object> ctx)
void clearSecurityContext()
String getUniqueID()
void setUniqueID(String id)
void initialise(String serviceName,
Map<String,Object> initobjs)
throws Exception
serviceName - the service name this instance belongs toinitobjs - Service specific array with initialisation objects
ExceptionString getServiceName()
void setServiceName(String serviceName)
void setHome(Home home)
home - boolean isExpired()
Calendar getTerminationTime()
boolean hasChanged()
boolean isDestroyed()
void clearChangeFlag()
void destroy()
Map<String,Serializable> passivate()
void activate(Map<String,Serializable> context)
context - a map containing the state of the WS-Resourcevoid postActivate()
void processMessages(PullPoint messageIterator)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||