public class _ServantActivatorStub extends ObjectImpl implements ServantActivator, Serializable
This ServantActivator stub is an optional base for the
servant activators. This stub cannot accept remote invocations, as
methods in ServantActivatorOperations take POA as one of parameters.
Both JDK 1.5 API and OMG specifies that POA is a local object that must not
be transferred to the remote invocation target.
You do not need to derive your servant activator from this stub,
it is enough to implement the ServantActivator interface.
But you may choose to do this if you need the functional
_ids() method or want to keep default behavior during
the incarnation or etherialization.
| Modifier and Type | Field and Description |
|---|---|
static Class |
_opsClass
This the purpose of this field is undocumented up till 1.5 java API
inclusive.
|
| Constructor and Description |
|---|
_ServantActivatorStub() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
_ids()
Return the array of repository ids for this object.
|
void |
etherealize(byte[] Object_id,
POA poa,
Servant servant,
boolean cleanup,
boolean remaining)
It is your responsibility to handle the etherialization event.
|
Servant |
incarnate(byte[] Object_id,
POA poa)
It is your responsibility to handle the incarnation event and
supply the servant.
|
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_overridepublic _ServantActivatorStub()
public String[] _ids()
_ids in class ObjectImplpublic Servant incarnate(byte[] Object_id, POA poa) throws ForwardRequest
incarnate in interface ServantActivatorOperationsObject_id - the ObjectId value associated with the incoming request.poa - the POA in which the object is being activated.ForwardRequestServantActivatorOperations.incarnate(byte[], org.omg.PortableServer.POA)public void etherealize(byte[] Object_id, POA poa, Servant servant, boolean cleanup, boolean remaining)
etherealize in interface ServantActivatorOperationsObject_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 - if true, this method was called from due
deactivation or destruction operation. False indicates that the method
was called due other reasons.remaining - if true, at the invocation moment the
passed servant is also associated with other objects in the active
object map of the given POA.ServantActivatorOperations.incarnate(byte[], org.omg.PortableServer.POA)