Class ObjectAdapterBase

java.lang.Object
org.omg.CORBA.LocalObject
com.sun.corba.se.spi.oa.ObjectAdapterBase
All Implemented Interfaces:
ObjectAdapter, Object
Direct Known Subclasses:
POAImpl, TOAImpl

public abstract class ObjectAdapterBase extends LocalObject implements ObjectAdapter
  • Constructor Details

    • ObjectAdapterBase

      public ObjectAdapterBase(ORB orb)
  • Method Details

    • iorWrapper

      public final POASystemException iorWrapper()
    • lifecycleWrapper

      public final POASystemException lifecycleWrapper()
    • omgLifecycleWrapper

      public final OMGSystemException omgLifecycleWrapper()
    • invocationWrapper

      public final POASystemException invocationWrapper()
    • omgInvocationWrapper

      public final OMGSystemException omgInvocationWrapper()
    • initializeTemplate

      public final void initializeTemplate(ObjectKeyTemplate oktemp, boolean notifyORB, Policies policies, String codebase, String objectAdapterManagerId, ObjectAdapterId objectAdapterId)
    • makeObject

      public final Object makeObject(String repId, byte[] oid)
    • getAdapterId

      public final byte[] getAdapterId()
    • getORB

      public final ORB getORB()
      Description copied from interface: ObjectAdapter
      Returns the ORB associated with this adapter.
      Specified by:
      getORB in interface ObjectAdapter
    • getEffectivePolicy

      public abstract Policy getEffectivePolicy(int type)
      Specified by:
      getEffectivePolicy in interface ObjectAdapter
    • getIORTemplate

      public final IORTemplate getIORTemplate()
      Description copied from interface: ObjectAdapter
      Returns the IOR template of this adapter. The profiles in this template may be updated only during the AdapterCreated call. After that call completes, the IOR template must be made immutable. Note that the server ID, ORB ID, and adapter name are all available from the IOR template.
      Specified by:
      getIORTemplate in interface ObjectAdapter
    • getManagerId

      public abstract int getManagerId()
      Description copied from interface: ObjectAdapter
      Return the ID of the AdapterManager for this object adapter.
      Specified by:
      getManagerId in interface ObjectAdapter
    • getState

      public abstract short getState()
      Description copied from interface: ObjectAdapter
      Return the current state of this object adapter (see org.omg.PortableInterceptors for states.
      Specified by:
      getState in interface ObjectAdapter
    • getAdapterTemplate

      public final ObjectReferenceTemplate getAdapterTemplate()
      Specified by:
      getAdapterTemplate in interface ObjectAdapter
    • getCurrentFactory

      public final ObjectReferenceFactory getCurrentFactory()
      Specified by:
      getCurrentFactory in interface ObjectAdapter
    • setCurrentFactory

      public final void setCurrentFactory(ObjectReferenceFactory factory)
      Description copied from interface: ObjectAdapter
      Change the current factory. This may only be called during the AdapterCreated call.
      Specified by:
      setCurrentFactory in interface ObjectAdapter
    • getLocalServant

      public abstract Object getLocalServant(byte[] objectId)
      Description copied from interface: ObjectAdapter
      Get the servant corresponding to the given objectId, if this is supported. This method is only used for models where the servant is an ObjectImpl, which allows the servant to be used directly as the stub. This allows an object reference to be replaced by its servant when it is unmarshalled locally. Such objects are not ORB mediated.
      Specified by:
      getLocalServant in interface ObjectAdapter
    • getInvocationServant

      public abstract void getInvocationServant(OAInvocationInfo info)
      Description copied from interface: ObjectAdapter
      Get the servant for the request given by the parameters. info must contain a valid objectId in this call. The servant is set in the InvocationInfo argument that is passed into this call.
      Specified by:
      getInvocationServant in interface ObjectAdapter
      Parameters:
      info - is the InvocationInfo object for the object reference
    • returnServant

      public abstract void returnServant()
      Description copied from interface: ObjectAdapter
      Must be called every time getInvocationServant is called after the request has completed.
      Specified by:
      returnServant in interface ObjectAdapter
    • enter

      public abstract void enter() throws OADestroyed
      Description copied from interface: ObjectAdapter
      enter must be called before each request is invoked on a servant.
      Specified by:
      enter in interface ObjectAdapter
      Throws:
      OADestroyed - is thrown when an OA has been destroyed, which requires a retry in the case where an AdapterActivator is present.
    • exit

      public abstract void exit()
      Description copied from interface: ObjectAdapter
      exit must be called after each request has been completed. If enter is called, there must always be a corresponding exit.
      Specified by:
      exit in interface ObjectAdapter
    • getObjectCopierFactory

      protected abstract ObjectCopierFactory getObjectCopierFactory()
    • makeInvocationInfo

      public OAInvocationInfo makeInvocationInfo(byte[] objectId)
      Description copied from interface: ObjectAdapter
      Create an instance of InvocationInfo that is appropriate for this Object adapter.
      Specified by:
      makeInvocationInfo in interface ObjectAdapter
    • getInterfaces

      public abstract String[] getInterfaces(Object servant, byte[] objectId)
      Description copied from interface: ObjectAdapter
      Return the most derived interface for the given servant and objectId.
      Specified by:
      getInterfaces in interface ObjectAdapter