Class PresentationManagerImpl
java.lang.Object
com.sun.corba.ee.impl.presentation.rmi.PresentationManagerImpl
- All Implemented Interfaces:
PresentationManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
private static class
Nested classes/interfaces inherited from interface com.sun.corba.ee.spi.presentation.rmi.PresentationManager
PresentationManager.ClassData, PresentationManager.StubFactory, PresentationManager.StubFactoryFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.glassfish.pfl.basic.concurrent.WeakCache
<Class<?>, PresentationManager.ClassData> private boolean
private org.glassfish.pfl.basic.concurrent.WeakCache
<Method, DynamicMethodMarshaller> private PrintStream
private boolean
private static final ORBUtilSystemException
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addNodes
(List<String> resultList, Set<PresentationManagerImpl.NodeImpl> nodeSet) void
void
Turn on internal debugging flags, which dump information about stub code generation to the PrintStream.void
flushClass
(Class<?> cls) Remove all internal references to Class cls from the PresentationManager.getClassData
(Class<?> cls) Get the ClassData for a particular class.boolean
getDebug()
getDynamicMethodMarshaller
(Method method) Given a particular method, return a DynamicMethodMarshaller for that method.Return the registered dynamic StubFactoryFactory.private Class<?>[]
getRepositoryId
(Remote impl) Get the correct repository ID for the given implementation instance.private Set
<PresentationManagerImpl.NodeImpl> getRootSet
(Class<?> target, PresentationManagerImpl.NodeImpl root, org.glassfish.pfl.basic.graph.Graph<PresentationManagerImpl.NodeImpl> gr) Return the registered static StubFactoryFactory.getStubFactoryFactory
(boolean isDynamic) Return the registered StubFactoryFactory.getTie()
Equivalent to getStubFactoryFactory( true ).getTie( null ).private String[]
makeTypeIds
(PresentationManagerImpl.NodeImpl root, org.glassfish.pfl.basic.graph.Graph<PresentationManagerImpl.NodeImpl> gr, Set<PresentationManagerImpl.NodeImpl> rootSet) void
Register the static StubFactoryFactory.void
Register the dynamic StubFactoryFactory.boolean
Returns the value of the com.sun.corba.ee.ORBUseDynamicStub property.
-
Field Details
-
wrapper
-
classToClassData
private org.glassfish.pfl.basic.concurrent.WeakCache<Class<?>,PresentationManager.ClassData> classToClassData -
methodToDMM
-
staticStubFactoryFactory
-
dynamicStubFactoryFactory
-
useDynamicStubs
private boolean useDynamicStubs -
debug
private boolean debug -
ps
-
-
Constructor Details
-
PresentationManagerImpl
public PresentationManagerImpl(boolean useDynamicStubs)
-
-
Method Details
-
getDynamicMethodMarshaller
Description copied from interface:PresentationManager
Given a particular method, return a DynamicMethodMarshaller for that method. This is used for dynamic stubs and ties.- Specified by:
getDynamicMethodMarshaller
in interfacePresentationManager
- Parameters:
method
- Method for which we need a DynamicMethodMarshaller.- Returns:
- The DynamicMethodMarshaller.
-
getClassData
Description copied from interface:PresentationManager
Get the ClassData for a particular class. This class may be an implementation class, in which case the IDLNameTranslator handles all Remote interfaces implemented by the class. If the class implements more than one remote interface, and not all of the remote interfaces are related by inheritance, then the type IDs have the implementation class as element 0.- Specified by:
getClassData
in interfacePresentationManager
- Parameters:
cls
- iClass fro which we need ClassData.- Returns:
- The ClassData.
-
getStubFactoryFactory
Description copied from interface:PresentationManager
Return the registered StubFactoryFactory.- Specified by:
getStubFactoryFactory
in interfacePresentationManager
- Parameters:
isDynamic
- true iff we want the dynamic stub factory- Returns:
- static or dynamic stub factory.
-
getStaticStubFactoryFactory
Description copied from interface:PresentationManager
Return the registered static StubFactoryFactory.- Specified by:
getStaticStubFactoryFactory
in interfacePresentationManager
- Returns:
- static stub factory.
-
getDynamicStubFactoryFactory
Description copied from interface:PresentationManager
Return the registered dynamic StubFactoryFactory.- Specified by:
getDynamicStubFactoryFactory
in interfacePresentationManager
- Returns:
- dynamic stub factory.
-
setStaticStubFactoryFactory
Register the dynamic StubFactoryFactory. Note that a dynamic StubFactoryFactory is optional.- Parameters:
sff
- Factory to register
-
setDynamicStubFactoryFactory
Register the static StubFactoryFactory. Note that a static StubFactoryFactory is always required for IDL.- Parameters:
sff
- Factory to Register
-
getTie
Description copied from interface:PresentationManager
Equivalent to getStubFactoryFactory( true ).getTie( null ). Provided for compatibility with earlier versions of PresentationManager as used in the app server. The class argument is ignored in the dynamic case, so this is safe.- Specified by:
getTie
in interfacePresentationManager
- Returns:
- The static tie.
-
getRepositoryId
Description copied from interface:PresentationManager
Get the correct repository ID for the given implementation instance. This is useful when using dynamic RMI with the POA.- Specified by:
getRepositoryId
in interfacePresentationManager
- Parameters:
impl
- implementation- Returns:
- repository ID string
-
useDynamicStubs
public boolean useDynamicStubs()Description copied from interface:PresentationManager
Returns the value of the com.sun.corba.ee.ORBUseDynamicStub property.- Specified by:
useDynamicStubs
in interfacePresentationManager
- Returns:
- whether to use dynamic stubs.
-
flushClass
Description copied from interface:PresentationManager
Remove all internal references to Class cls from the PresentationManager. This allows ClassLoaders to be garbage collected when they are no longer needed.- Specified by:
flushClass
in interfacePresentationManager
- Parameters:
cls
- Class to flush
-
getRootSet
private Set<PresentationManagerImpl.NodeImpl> getRootSet(Class<?> target, PresentationManagerImpl.NodeImpl root, org.glassfish.pfl.basic.graph.Graph<PresentationManagerImpl.NodeImpl> gr) -
getInterfaces
-
makeTypeIds
private String[] makeTypeIds(PresentationManagerImpl.NodeImpl root, org.glassfish.pfl.basic.graph.Graph<PresentationManagerImpl.NodeImpl> gr, Set<PresentationManagerImpl.NodeImpl> rootSet) -
addNodes
-
enableDebug
Turn on internal debugging flags, which dump information about stub code generation to the PrintStream.- Parameters:
ps
- Output stream.
-
disableDebug
public void disableDebug() -
getDebug
public boolean getDebug()- Specified by:
getDebug
in interfacePresentationManager
-
getPrintStream
- Specified by:
getPrintStream
in interfacePresentationManager
-