public abstract class Servant extends Object
Defines the native
Servant type. In Java, the
Servant type is mapped to the Java
org.omg.PortableServer.Servant class. It serves as the base class for all POA servant implementations and provides a number of methods that may be invoked by the application programmer, as well as methods which are invoked by the POA itself and may be overridden by the user to control aspects of servant behavior. Based on IDL to Java spec. (CORBA V2.3.1) ptc/00-01-08.pdf.
public final Delegate _get_delegate()
Gets the ORB vendor-specific implementation of
_delegatethe ORB vendor-specific implementation of
public final void _set_delegate(Delegate delegate)
Supports the Java ORB portability interfaces by providing a method for classes that support ORB portability through delegation to set their delegate.
delegate- ORB vendor-specific implementation of the
public final Object _this_object()
Allows the servant to obtain the object reference for the target CORBA object it is incarnating for that request.
Objectreference associated with the request.
public final Object _this_object(ORB orb)
Allows the servant to obtain the object reference for the target CORBA Object it is incarnating for that request.
orb- ORB with which the servant is associated.
_this_objectreference associated with the request.
public final ORB _orb()
Returns the instance of the ORB currently associated with the
Servant (convenience method).
orbthe instance of the ORB currently associated with the
public final POA _poa()
Allows easy execution of common methods, equivalent to
poaPOA associated with the servant.
public final byte _object_id()
Allows easy execution of common methods, equivalent to calling
ObjectID associated with this servant.
public POA _default_POA()
Returns the root POA from the ORB instance associated with the servant. Subclasses may override this method to return a different POA.
default_POAthe POA associated with the
public boolean _is_a(String repository_id)
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.
repository_idto be checked in the repository list or against the id of generic CORBA objects.
is_aboolean indicating whether the specified
repository_idis in the repository list or is same as a generic CORBA object.
public boolean _non_existent()
Checks for the existence of an
Servant provides a default implementation of
_non_existent() that can be overridden by derived servants.
trueif that object does not exist,
public Object _get_interface_def()
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
InterfaceDefobject as a
CORBA::Objectthat defines the runtime type of the
CORBA::Objectimplemented by the
public abstract String _all_interfaces(POA poa, byte objectId)
Used by the ORB to obtain complete type information from the servant.
poa- POA with which the servant is associated.
objectId- is the id corresponding to the object associated with this servant.
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.