Class ServantManagerImpl

java.lang.Object
org.omg.CORBA.LocalObject
com.sun.corba.se.impl.naming.pcosnaming.ServantManagerImpl
All Implemented Interfaces:
Serializable, Object, IDLEntity, ServantLocator, ServantLocatorOperations, ServantManager, ServantManagerOperations

public class ServantManagerImpl extends LocalObject implements ServantLocator
Since:
JDK1.2
Author:
Rohit Garg
See Also:
  • Method Details

    • preinvoke

      public Servant preinvoke(byte[] oid, POA adapter, String operation, CookieHolder cookie) throws ForwardRequest
      Description copied from interface: ServantLocatorOperations
      This operations is used to get a servant that will be used to process the request that caused preinvoke to be called.
      Specified by:
      preinvoke in interface ServantLocatorOperations
      Parameters:
      oid - the object id associated with object on which the request was made.
      adapter - the reference for POA in which the object is being activated.
      operation - the operation name.
      cookie - an opaque value that can be set by the servant manager to be used during postinvoke.
      Returns:
      Servant used to process incoming request.
      Throws:
      ForwardRequest - to indicate to the ORB that it is responsible for delivering the current request and subsequent requests to the object denoted in the forward_reference member of the exception.
    • postinvoke

      public void postinvoke(byte[] oid, POA adapter, String operation, Object cookie, Servant servant)
      Description copied from interface: ServantLocatorOperations
      This operation is invoked whenener a servant completes a request.
      Specified by:
      postinvoke in interface ServantLocatorOperations
      Parameters:
      oid - the object id ssociated with object on which the request was made.
      adapter - the reference for POA in which the object was active.
      cookie - an opaque value that contains the data set by preinvoke.
      servant - reference to the servant that is associated with the object.
    • readInContext

      public NamingContextImpl readInContext(String objKey)
    • addContext

      public NamingContextImpl addContext(String objKey, NamingContextImpl context)
    • updateContext

      public void updateContext(String objKey, NamingContextImpl context)
    • getRootObjectKey

      public static String getRootObjectKey()
    • getNewObjectKey

      public String getNewObjectKey()