Package com.sun.corba.ee.impl.oa.toa
Class TOAFactory
- java.lang.Object
-
- com.sun.corba.ee.impl.oa.toa.TOAFactory
-
- All Implemented Interfaces:
ObjectAdapterFactory
@ManagedObject @Description("The Factory for the TOA (transient object adapter)") @AMXMetadata(isSingleton=true) public class TOAFactory extends java.lang.Object implements ObjectAdapterFactory
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,TOAImpl>codebaseToTOAprivate ORBorbprivate TOAImpltoaprivate TransientObjectManagertomprivate static ORBUtilSystemExceptionwrapper
-
Constructor Summary
Constructors Constructor Description TOAFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectAdapterfind(ObjectAdapterId oaid)Find the ObjectAdapter instance that corresponds to the given ObjectAdapterId.private java.util.Map<java.lang.String,TOAImpl>getCodebaseMap()private TOAImplgetDefaultTOA()ORBgetORB()TOAgetTOA()TOAgetTOA(java.lang.String codebase)voidinit(ORB orb)Initialize this object adapter factory instance.voidshutdown(boolean waitForCompletion)Shutdown all object adapters and other state associated with this factory.
-
-
-
Field Detail
-
wrapper
private static final ORBUtilSystemException wrapper
-
orb
private ORB orb
-
toa
private TOAImpl toa
-
codebaseToTOA
private java.util.Map<java.lang.String,TOAImpl> codebaseToTOA
-
tom
private TransientObjectManager tom
-
-
Method Detail
-
getDefaultTOA
@ManagedAttribute @Description("The default TOA used only for dispatch, not objref creation") private TOAImpl getDefaultTOA()
-
getCodebaseMap
@ManagedAttribute @Description("The map from Codebase to TOA") private java.util.Map<java.lang.String,TOAImpl> getCodebaseMap()
-
find
public ObjectAdapter find(ObjectAdapterId oaid)
Description copied from interface:ObjectAdapterFactoryFind the ObjectAdapter instance that corresponds to the given ObjectAdapterId.- Specified by:
findin interfaceObjectAdapterFactory- Parameters:
oaid- id to look up- Returns:
- found ObjectAdapter
-
init
public void init(ORB orb)
Description copied from interface:ObjectAdapterFactoryInitialize this object adapter factory instance.- Specified by:
initin interfaceObjectAdapterFactory- Parameters:
orb- to use for initalisation
-
shutdown
public void shutdown(boolean waitForCompletion)
Description copied from interface:ObjectAdapterFactoryShutdown all object adapters and other state associated with this factory.- Specified by:
shutdownin interfaceObjectAdapterFactory- Parameters:
waitForCompletion- if true then wait for all ongoing requests to finish before shutting down, if false then shutdown immediatly.
-
getTOA
public TOA getTOA(java.lang.String codebase)
-
getTOA
public TOA getTOA()
-
getORB
public ORB getORB()
- Specified by:
getORBin interfaceObjectAdapterFactory
-
-