|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omg.CORBA.portable.ObjectImpl
org.omg.PortableServer._ServantActivatorStub
public class _ServantActivatorStub
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.
Field Summary | |
---|---|
static Class |
_opsClass
This the purpose of this field is undocumented up till 1.5 java API inclusive. |
Constructor Summary | |
---|---|
_ServantActivatorStub()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.omg.CORBA.portable.ObjectImpl |
---|
_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, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.omg.CORBA.Object |
---|
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override |
Field Detail |
---|
public static final Class _opsClass
Constructor Detail |
---|
public _ServantActivatorStub()
Method Detail |
---|
public String[] _ids()
_ids
in class ObjectImpl
public Servant incarnate(byte[] Object_id, POA poa) throws ForwardRequest
incarnate
in interface ServantActivatorOperations
Object_id
- the ObjectId value associated with the incoming request.poa
- the POA in which the object is being activated.
ForwardRequest
ServantActivatorOperations.incarnate(byte[], org.omg.PortableServer.POA)
public void etherealize(byte[] Object_id, POA poa, Servant servant, boolean cleanup, boolean remaining)
etherealize
in interface ServantActivatorOperations
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
- 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |