Class POAFactory

java.lang.Object
com.sun.corba.ee.impl.oa.poa.POAFactory
All Implemented Interfaces:
ObjectAdapterFactory

@ManagedObject @Description("The factory for all POAs and POAManagers") @AMXMetadata(isSingleton=true) public class POAFactory extends Object implements ObjectAdapterFactory
  • Field Details

    • wrapper

      private static final POASystemException wrapper
    • omgWrapper

      private static final OMGSystemException omgWrapper
    • exportedServantsToPOA

      private Map<Servant,POA> exportedServantsToPOA
    • poaManagers

      private ConcurrentHashMap<POAManager,Boolean> poaManagers
    • poaManagerId

      private int poaManagerId
    • poaId

      private int poaId
    • rootPOA

      private POAImpl rootPOA
    • delegateImpl

      private DelegateImpl delegateImpl
    • orb

      private ORB orb
    • isShuttingDown

      private boolean isShuttingDown
    • mom

      private org.glassfish.gmbal.ManagedObjectManager mom
  • Constructor Details

    • POAFactory

      public POAFactory()
      All object adapter factories must have a no-arg constructor.
  • Method Details

    • getWrapper

      public POASystemException getWrapper()
    • getExportedServants

      @ManagedAttribute @Description("The servants managed by a particular POA") private List<POAFactory.ServantPOAPair> getExportedServants()
    • getPOAManagers

      @ManagedAttribute @Description("The POAManagers") private Set<POAManager> getPOAManagers()
    • getPOAManagerId

      @ManagedAttribute @Description("The last allocated POAManager id") private int getPOAManagerId()
    • getPOAId

      @ManagedAttribute @Description("The last allocated POAManager id") private int getPOAId()
    • getDisplayRootPOA

      @ManagedAttribute(id="RootPOA") @Description("The root POA") private POAImpl getDisplayRootPOA()
    • lookupPOA

      public POA lookupPOA(Servant servant)
    • registerPOAForServant

      public void registerPOAForServant(POA poa, Servant servant)
    • unregisterPOAForServant

      public void unregisterPOAForServant(POA poa, Servant servant)
    • init

      public void init(ORB orb)
      Description copied from interface: ObjectAdapterFactory
      Initialize this object adapter factory instance.
      Specified by:
      init in interface ObjectAdapterFactory
      Parameters:
      orb - to use for initalisation
    • find

      public ObjectAdapter find(ObjectAdapterId oaid)
      Description copied from interface: ObjectAdapterFactory
      Find the ObjectAdapter instance that corresponds to the given ObjectAdapterId.
      Specified by:
      find in interface ObjectAdapterFactory
      Parameters:
      oaid - id to look up
      Returns:
      found ObjectAdapter
    • shutdown

      public void shutdown(boolean waitForCompletion)
      Description copied from interface: ObjectAdapterFactory
      Shutdown all object adapters and other state associated with this factory.
      Specified by:
      shutdown in interface ObjectAdapterFactory
      Parameters:
      waitForCompletion - if true then wait for all ongoing requests to finish before shutting down, if false then shutdown immediatly.
    • removePoaManager

      public void removePoaManager(POAManager manager)
    • addPoaManager

      public void addPoaManager(POAManager manager)
    • newPOAManagerId

      public int newPOAManagerId()
    • registerRootPOA

      public void registerRootPOA()
    • getRootPOA

      public POA getRootPOA()
    • getDelegateImpl

      public Delegate getDelegateImpl()
    • newPOAId

      public int newPOAId()
    • getORB

      public ORB getORB()
      Specified by:
      getORB in interface ObjectAdapterFactory