org.omg.PortableServer.portable

Interface Delegate

public interface Delegate

Each {@link Servant} has an associated delegate, where the most of the calls are forwarded. The delegate is responsible for providing the actual functionality. This class is required to supports a conceptions of the CORBA 2.3.1 Servant.
Method Summary
POAdefault_POA(Servant a_servant)
Returns the root POA of the ORB instance, associated with this servant.
Objectget_interface_def(Servant a_servant)
Get the interface repository defintion InterfaceDef for this Object.
booleanis_a(Servant a_servant, String an_id)
Checks if the passed servant is an instance of the given CORBA IDL type.
booleannon_existent(Servant a_servant)
Determines if the server object for this reference has already been destroyed.
byte[]object_id(Servant a_servant)
Return the invocation target object identifier as a byte array.
ORBorb(Servant a_servant)
Returns the ORB that is directly associated with the given servant.
POApoa(Servant a_servant)
Get POA that is directly associated with the given servant.
Objectthis_object(Servant a_servant)
Obtains the CORBA object reference that is an invocation target for the given servant.

Method Detail

default_POA

public POA default_POA(Servant a_servant)
Returns the root POA of the ORB instance, associated with this servant. It is the same POA that would be returned by resolving the initial reference "RootPOA" for that orb. The default {@link Servant#_default_POA()} method forwards call to the delegate can be overridden to obtain the alternative default POA.

See Also: ORB

get_interface_def

public Object get_interface_def(Servant a_servant)
Get the interface repository defintion InterfaceDef for this Object.

is_a

public boolean is_a(Servant a_servant, String an_id)
Checks if the passed servant is an instance of the given CORBA IDL type.

Parameters: a_servant a servant to check. an_id a repository ID, representing an IDL type for that the servant must be checked.

Returns: true if the servant is an instance of the given type, false otherwise.

non_existent

public boolean non_existent(Servant a_servant)
Determines if the server object for this reference has already been destroyed.

Returns: true if the object has been destroyed, false otherwise.

object_id

public byte[] object_id(Servant a_servant)
Return the invocation target object identifier as a byte array.

orb

public ORB orb(Servant a_servant)
Returns the ORB that is directly associated with the given servant.

poa

public POA poa(Servant a_servant)
Get POA that is directly associated with the given servant.

this_object

public Object this_object(Servant a_servant)
Obtains the CORBA object reference that is an invocation target for the given servant.