|
VisiBroker for Java |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.omg.PortableServer.Servant
public abstract class Servant
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.
Constructor Summary | |
---|---|
Servant()
|
Method Summary | |
---|---|
abstract java.lang.String[] |
_all_interfaces(POA poa,
byte[] objectId)
Used by the ORB to obtain complete type information from the servant. |
POA |
_default_POA()
Returns the root POA from the ORB instance associated with the servant. |
Delegate |
_get_delegate()
Gets the ORB vendor-specific implementation of PortableServer::Servant. |
Object |
_get_interface_def()
Returns an InterfaceDef object as a CORBA::Object that defines the runtime type of the CORBA::Object implemented by the Servant. |
boolean |
_is_a(java.lang.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. |
boolean |
_non_existent()
Checks for the existence of an Object. |
byte[] |
_object_id()
Allows easy execution of common methods, equivalent to calling PortableServer::Current::get_object_id. |
ORB |
_orb()
Returns the instance of the ORB currently associated with the Servant (convenience method). |
POA |
_poa()
Allows easy execution of common methods, equivalent to PortableServer::Current:get_POA. |
void |
_set_delegate(Delegate theDelegate)
Supports the Java ORB portability interfaces by providing a method for classes that support ORB portability through delegation to set their delegate. |
Object |
_this_object()
Allows the servant to obtain the object reference for the target CORBA object it is incarnating for that request. |
Object |
_this_object(ORB orb)
Allows the servant to obtain the object reference for the target CORBA Object it is incarnating for that request. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Servant()
Method Detail |
---|
public Delegate _get_delegate()
public final void _set_delegate(Delegate theDelegate)
delegate
- ORB vendor-specific implementation of the PortableServer::Servant.public final Object _this_object()
public final Object _this_object(ORB orb)
orb
- ORB with which the servant is associated.
public final ORB _orb()
public final POA _poa()
public final byte[] _object_id()
public POA _default_POA()
public boolean _is_a(java.lang.String repository_id)
repository_id
- the repository_id to be checked in the repository list or against the
id of generic CORBA objects.
public boolean _non_existent()
public Object _get_interface_def()
public abstract java.lang.String[] _all_interfaces(POA poa, byte[] objectId)
poa
- POA with which the servant is associated.objectId
- is the id corresponding to the object associated with this servant.
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |