publicabstract abstract class DynamicImplementation
Allows dynamic handling of object invocations.
Allows dynamic handling of object invocations. POA-based DSI servants inherit from the standard DynamicImplementation class, this class inherits from the Servant class. Based on IDL to Java spec. CORBA V 2.3.1 ptc/00-01-08.pdf.
publicabstractString _all_interfaces
(POA poa, byte[] objectId)
[Inherited From Servant]
Used by the ORB to obtain complete type
information from the servant.
Used by the ORB to obtain complete type information from the servant.
Returns:
list of type information for the object.
Parameters: - poa - POA with which the servant is associated.
- objectId - is the id corresponding to the object
associated with this servant.
publicPOA _default_POA
()
[Inherited From Servant]
Returns the
root POA from the ORB instance associated with the servant.
Returns the root POA from the ORB instance associated with the servant. Subclasses may override this method to return a different POA.
Returns:default_POA the POA associated with the
Servant.
publicfinalDelegate _get_delegate
()
[Inherited From Servant]
Gets the ORB vendor-specific implementation of
PortableServer::Servant.
Gets the ORB vendor-specific implementation of PortableServer::Servant.
Returns:_delegate the ORB vendor-specific
implementation of PortableServer::Servant.
publicObject _get_interface_def
()
[Inherited From Servant]
Returns an InterfaceDef object as a
CORBA::Object that defines the runtime type of the
CORBA::Object implemented by the Servant.
Returns an InterfaceDef object as a
CORBA::Object that defines the runtime type of the
CORBA::Object implemented by the Servant.
The invoker of _get_interface_def
must narrow the result to an InterfaceDef in order
to use it.
This default implementation of _get_interface_def()
can be overridden
by derived servants if the default behavior is not adequate.
As defined in the CORBA 2.3.1 specification, section 11.3.1, the
default behavior of _get_interface_def() is to use
the most derived
interface of a static servant or the most derived interface retrieved
from a dynamic servant to obtain the InterfaceDef.
This behavior must
be supported by the Delegate that implements the
Servant.
Returns:get_interface_def an InterfaceDef
object as a
CORBA::Object that defines the runtime type of the
CORBA::Object implemented by the Servant.
public boolean
_is_a
(String repository_id)
[Inherited From Servant]
Checks to see if the specified repository_id is present
on the list returned by _all_interfaces() or is the
repository_id for the generic CORBA Object.
Checks to see if the specified repository_id is present on the list returned by _all_interfaces() or is the repository_id for the generic CORBA Object.
Returns:is_a boolean indicating whether the specified
repository_id is
in the repository list or is same as a generic CORBA
object.
Parameters: - repository_id - the repository_id
to be checked in the repository list or against the id
of generic CORBA objects.
public boolean
_non_existent
()
[Inherited From Servant]
Checks for the existence of an
Object.
Checks for the existence of an Object. The Servant provides a default implementation of _non_existent() that can be overridden by derived servants.
Returns:non_existenttrue if that object does
not exist, false otherwise.
publicfinal byte
_object_id
()
[Inherited From Servant]
Allows easy execution of
common methods, equivalent
to calling PortableServer::Current::get_object_id.
Allows easy execution of common methods, equivalent to calling PortableServer::Current::get_object_id.
Returns:object_id the Object ID associated
with this servant.
Returns the instance of the ORB
currently associated with the Servant (convenience method).
Returns the instance of the ORB currently associated with the Servant (convenience method).
Returns:orb the instance of the ORB currently
associated with the Servant.
Allows easy execution of common methods, equivalent to
PortableServer::Current:get_POA.
Allows easy execution of common methods, equivalent to PortableServer::Current:get_POA.
Returns:poa POA associated with the servant.
publicfinal void
_set_delegate
(Delegate delegate)
[Inherited From Servant]
Supports the Java ORB portability
interfaces by providing a method for classes that support
ORB portability through delegation to set their delegate.
Supports the Java ORB portability interfaces by providing a method for classes that support ORB portability through delegation to set their delegate.
Parameters: - delegate - ORB vendor-specific implementation of
the PortableServer::Servant.
publicfinalObject _this_object
()
[Inherited From Servant]
Allows the servant to obtain the object reference for
the target CORBA object it is incarnating for that request.
Allows the servant to obtain the object reference for the target CORBA object it is incarnating for that request.
Returns:this_objectObject reference
associated with the request.
publicfinalObject _this_object
(ORB orb)
[Inherited From Servant]
Allows the servant to obtain the object reference for
the target CORBA Object it is incarnating for that request.
Allows the servant to obtain the object reference for the target CORBA Object it is incarnating for that request.
Returns:_this_object reference associated with the request.
Parameters: - orb - ORB with which the servant is associated.
Receives requests issued to any CORBA object
incarnated by the DSI servant and performs the processing
necessary to execute the request.
Receives requests issued to any CORBA object incarnated by the DSI servant and performs the processing necessary to execute the request.
Parameters: - request - the request issued to the CORBA object.