Class DelegateImpl

java.lang.Object
com.sun.corba.ee.impl.oa.poa.DelegateImpl
All Implemented Interfaces:
Delegate

public class DelegateImpl extends Object implements Delegate
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private POAFactory
     
    private ORB
     
    private static final POASystemException
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DelegateImpl(ORB orb, POAFactory factory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The default behavior of this function is to return the root POA from the ORB instance associated with the servant.
    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, 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
    This operation is used to check for the existence of the Object.
    byte[]
    The method _object_id() is equivalent to calling PortableServer::Current::get_object_id.
    orb(Servant self)
    Convenience method that returns the instance of the ORB currently associated with the Servant.
    poa(Servant self)
    The method _poa() is equivalent to calling PortableServer::Current:get_POA.
    This 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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • DelegateImpl

      public DelegateImpl(ORB orb, POAFactory factory)
  • Method Details

    • 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.
      Specified by:
      orb in interface Delegate
      Parameters:
      self - the servant.
      Returns:
      ORB 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 interface Delegate
      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.
      Specified by:
      poa in interface Delegate
      Parameters:
      self - the servant.
      Returns:
      POA associated with the servant.
    • 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.
      Specified by:
      object_id in interface Delegate
      Parameters:
      self - the servant.
      Returns:
      ObjectId associated with this servant.
    • 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 interface Delegate
      Parameters:
      self - the servant.
      Returns:
      POA associated with the servant class.
    • is_a

      public boolean is_a(Servant self, 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.
      Specified by:
      is_a in interface Delegate
      Parameters:
      self - the servant.
      repId - the repository_id to be checked in the repository list or against the id of generic CORBA object.
      Returns:
      boolean indicating whether the specified repid is in the list or is same as that got 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 interface Delegate
      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 interface Delegate
      Parameters:
      Self - the servant.
      Returns:
      type information corresponding to the object.