public interface ServantActivatorOperations extends ServantManagerOperations
ServantActivator
.Modifier and Type | Method and Description |
---|---|
void |
etherealize(byte[] Object_Id,
POA poa,
Servant servant,
boolean cleanup_in_progress,
boolean remaining_activations)
This method is invoked whenever a servant for an object is deactivated,
assuming the POA has the USE_SERVANT_MANAGER and RETAIN policies.
|
Servant |
incarnate(byte[] Object_Id,
POA poa)
This method is invoked whenever the POA receives a request for an
object that is not currently active, assuming the POA has the
USE_SERVANT_MANAGER and RETAIN policies.
|
void etherealize(byte[] Object_Id, POA poa, Servant servant, boolean cleanup_in_progress, boolean remaining_activations)
Object_Id
- the Id of the object being deactivated.poa
- the POA in those scope the object was active.servant
- the servant, serving the object being deactivated.cleanup_in_progress
- if true, this method was called from due
deactivation or destruction operation. False indicates that the method
was called due other reasons.remaining_activations
- if true, at the invocation moment the
passed servant is also associated with other objects in the active
object map of the given POA.Servant incarnate(byte[] Object_Id, POA poa) throws ForwardRequest
Object_Id
- the ObjectId value associated with the incoming request.poa
- the POA in which the object is being activated.ForwardRequest
- if the activator decides to forward the request
to another object. The exception contains the object that should
handle this request. This object is usually remote, but can also
be local. The throws exception will forward all subsequent requests
till the new activation.