Package com.sun.corba.ee.impl.oa.poa
Class DelegateImpl
- java.lang.Object
-
- com.sun.corba.ee.impl.oa.poa.DelegateImpl
-
-
Field Summary
Fields Modifier and Type Field Description private POAFactory
factory
private ORB
orb
private static POASystemException
wrapper
-
Constructor Summary
Constructors Constructor Description DelegateImpl(ORB orb, POAFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description POA
default_POA(Servant self)
The default behavior of this function is to return the root POA from the ORB instance associated with the servant.Object
get_interface_def(Servant Self)
This operation returns an object in the Interface Repository which provides type information that may be useful to a program.boolean
is_a(Servant self, java.lang.String repId)
This method checks to see if the specified repid is present on the list returned by _all_interfaces() or is the repository id for the generic CORBA Object.boolean
non_existent(Servant self)
This operation is used to check for the existence of the Object.byte[]
object_id(Servant self)
The method _object_id() is equivalent to calling PortableServer::Current::get_object_id.ORB
orb(Servant self)
Convenience method that returns the instance of the ORB currently associated with the Servant.POA
poa(Servant self)
The method _poa() is equivalent to calling PortableServer::Current:get_POA.Object
this_object(Servant self)
This allows the servant to obtain the object reference for the target CORBA Object it is incarnating for that request.
-
-
-
Field Detail
-
wrapper
private static final POASystemException wrapper
-
orb
private ORB orb
-
factory
private POAFactory factory
-
-
Constructor Detail
-
DelegateImpl
public DelegateImpl(ORB orb, POAFactory factory)
-
-
Method Detail
-
orb
public ORB orb(Servant self)
Description copied from interface:Delegate
Convenience method that returns the instance of the ORB currently associated with the Servant.
-
this_object
public Object this_object(Servant self)
Description copied from interface:Delegate
This allows the servant to obtain the object reference for the target CORBA Object it is incarnating for that request.- Specified by:
this_object
in interfaceDelegate
- Parameters:
self
- the servant.- Returns:
- Object reference associated with the request.
-
poa
public POA poa(Servant self)
Description copied from interface:Delegate
The method _poa() is equivalent to calling PortableServer::Current:get_POA.
-
object_id
public byte[] object_id(Servant self)
Description copied from interface:Delegate
The method _object_id() is equivalent to calling PortableServer::Current::get_object_id.
-
default_POA
public POA default_POA(Servant self)
Description copied from interface:Delegate
The default behavior of this function is to return the root POA from the ORB instance associated with the servant.- Specified by:
default_POA
in interfaceDelegate
- Parameters:
self
- the servant.- Returns:
- POA associated with the servant class.
-
is_a
public boolean is_a(Servant self, java.lang.String repId)
Description copied from interface:Delegate
This method checks to see if the specified repid is present on the list returned by _all_interfaces() or is the repository id for the generic CORBA Object.
-
non_existent
public boolean non_existent(Servant self)
Description copied from interface:Delegate
This operation is used to check for the existence of the Object.- Specified by:
non_existent
in interfaceDelegate
- Parameters:
self
- the servant.- Returns:
- boolean true to indicate that object does not exist, and false otherwise.
-
get_interface_def
public Object get_interface_def(Servant Self)
Description copied from interface:Delegate
This operation returns an object in the Interface Repository which provides type information that may be useful to a program.- Specified by:
get_interface_def
in interfaceDelegate
- Parameters:
Self
- the servant.- Returns:
- type information corresponding to the object.
-
-