Class DelegateImpl

  • All Implemented Interfaces:
    Delegate

    public class DelegateImpl
    extends java.lang.Object
    implements Delegate
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
        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,
                            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.
        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.