org.omg.PortableServer

Class _ServantActivatorStub

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 {@link 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 {@link ServantActivator} interface. But you may choose to do this if you need the functional {@link #_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.
Method Summary
voidetherealize(byte[] Object_id, POA poa, Servant servant, boolean cleanup, boolean remaining)
It is your responsibility to handle the etherialization event.
Servantincarnate(byte[] Object_id, POA poa)
It is your responsibility to handle the incarnation event and supply the servant.
String[]_ids()
Return the array of repository ids for this object.

Field Detail

_opsClass

public static final Class _opsClass
This the purpose of this field is undocumented up till 1.5 java API inclusive.

Method Detail

etherealize

public void etherealize(byte[] Object_id, POA poa, Servant servant, boolean cleanup, boolean remaining)
It is your responsibility to handle the etherialization event. Override this method if using the class. The default method does nothing.

See Also: ServantActivatorOperations

incarnate

public Servant incarnate(byte[] Object_id, POA poa)
It is your responsibility to handle the incarnation event and supply the servant. Override this method if using the class. The default method instructs POA that the servant cannot be provided by activator. The OBJ_ADAPTER exception will be thrown by POA, unless the servant is provided as one of the parameters in the activation method.

Throws: ForwardRequest

See Also: ServantActivatorOperations

UNKNOWN: in GNU Classpath, returning null means that the activator does not supply the servant.

_ids

public String[] _ids()
Return the array of repository ids for this object.

Returns: { "IDL:omg.org/PortableServer/ServantActivator:2.3", "IDL:omg.org/PortableServer/ServantManager:1.0" }, always.