Package com.sun.corba.ee.impl.oa.poa
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 java.lang.Object implements ObjectAdapterFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
POAFactory.ServantPOAPair
-
Field Summary
Fields Modifier and Type Field Description private DelegateImpl
delegateImpl
private java.util.Map<Servant,POA>
exportedServantsToPOA
private boolean
isShuttingDown
private org.glassfish.gmbal.ManagedObjectManager
mom
private static OMGSystemException
omgWrapper
private ORB
orb
private int
poaId
private int
poaManagerId
private java.util.concurrent.ConcurrentHashMap<POAManager,java.lang.Boolean>
poaManagers
private POAImpl
rootPOA
private static POASystemException
wrapper
-
Constructor Summary
Constructors Constructor Description POAFactory()
All object adapter factories must have a no-arg constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPoaManager(POAManager manager)
ObjectAdapter
find(ObjectAdapterId oaid)
Find the ObjectAdapter instance that corresponds to the given ObjectAdapterId.Delegate
getDelegateImpl()
private POAImpl
getDisplayRootPOA()
private java.util.List<POAFactory.ServantPOAPair>
getExportedServants()
ORB
getORB()
private int
getPOAId()
private int
getPOAManagerId()
private java.util.Set<POAManager>
getPOAManagers()
POA
getRootPOA()
POASystemException
getWrapper()
void
init(ORB orb)
Initialize this object adapter factory instance.POA
lookupPOA(Servant servant)
int
newPOAId()
int
newPOAManagerId()
void
registerPOAForServant(POA poa, Servant servant)
void
registerRootPOA()
void
removePoaManager(POAManager manager)
void
shutdown(boolean waitForCompletion)
Shutdown all object adapters and other state associated with this factory.void
unregisterPOAForServant(POA poa, Servant servant)
-
-
-
Field Detail
-
wrapper
private static final POASystemException wrapper
-
omgWrapper
private static final OMGSystemException omgWrapper
-
poaManagers
private java.util.concurrent.ConcurrentHashMap<POAManager,java.lang.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
-
-
Method Detail
-
getWrapper
public POASystemException getWrapper()
-
getExportedServants
@ManagedAttribute @Description("The servants managed by a particular POA") private java.util.List<POAFactory.ServantPOAPair> getExportedServants()
-
getPOAManagers
@ManagedAttribute @Description("The POAManagers") private java.util.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()
-
init
public void init(ORB orb)
Description copied from interface:ObjectAdapterFactory
Initialize this object adapter factory instance.- Specified by:
init
in interfaceObjectAdapterFactory
- 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 interfaceObjectAdapterFactory
- 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 interfaceObjectAdapterFactory
- 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 interfaceObjectAdapterFactory
-
-