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>
codebaseToTOA
private ORB
orb
private TOAImpl
toa
private TransientObjectManager
tom
private static ORBUtilSystemException
wrapper
-
Constructor Summary
Constructors Constructor Description TOAFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectAdapter
find(ObjectAdapterId oaid)
Find the ObjectAdapter instance that corresponds to the given ObjectAdapterId.private java.util.Map<java.lang.String,TOAImpl>
getCodebaseMap()
private TOAImpl
getDefaultTOA()
ORB
getORB()
TOA
getTOA()
TOA
getTOA(java.lang.String codebase)
void
init(ORB orb)
Initialize this object adapter factory instance.void
shutdown(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: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
-
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
-
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.
-
getTOA
public TOA getTOA(java.lang.String codebase)
-
getTOA
public TOA getTOA()
-
getORB
public ORB getORB()
- Specified by:
getORB
in interfaceObjectAdapterFactory
-
-