public abstract class ServantActivatorPOA extends Servant implements InvokeHandler, ServantActivatorOperations
This ServantActivator stub is an optional base for the
servant activators. This stub cannot serve 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
_all_interfaces(POA, byte[])
method or want to keep default
behavior during the incarnation or etherialization.
Constructor and Description |
---|
ServantActivatorPOA() |
Modifier and Type | Method and Description |
---|---|
String[] |
_all_interfaces(POA poa,
byte[] Object_Id)
Returns an array of interfaces, supported by the servant activator.
|
OutputStream |
_invoke(String method,
InputStream input,
ResponseHandler handler)
Our implementation will not call this method.
|
ServantActivator |
_this()
Return the complete instance of the servant activator, based on
the current class (ServantActivatorPOA or derived).
|
ServantActivator |
_this(ORB orb)
Return the complete instance of the servant activator, based on
the current class (ServantActivatorPOA or derived).
|
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
etherealize, incarnate
public ServantActivatorPOA()
public OutputStream _invoke(String method, InputStream input, ResponseHandler handler) throws SystemException
_invoke
in interface InvokeHandler
method
- the name of the method to invoke.input
- the input stream to read parameters from.handler
- the response handler, used for creating the reply.ResponseHandler
.
The response values are already written to that stream.SystemException
- if invocation has failed due CORBA system exception.public String[] _all_interfaces(POA poa, byte[] Object_Id)
_all_interfaces
in class Servant
poa
- a POA of the given object.Object_Id
- the object Id of the given object.public ServantActivator _this()
public ServantActivator _this(ORB orb)