org.omg.PortableServer

Interface ServantActivatorOperations

public interface ServantActivatorOperations extends ServantManagerOperations

Defines the operations, applicable to the {@link ServantActivator}.
Method Summary
voidetherealize(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.
Servantincarnate(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.

Method Detail

etherealize

public 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.

Parameters: 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.

incarnate

public 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. The user-supplied servant manager is responsible for locating or creating an appropriate servant that corresponds to the ObjectId value. The subsequent requests with the same ObjectId value will be delivered directly to that servant without invoking the servant manager.

Parameters: Object_Id the ObjectId value associated with the incoming request. poa the POA in which the object is being activated.

Returns: a servant that will be used to process the incoming request.

Throws: 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.