Class PresentationManagerImpl
java.lang.Object
com.sun.corba.ee.impl.presentation.rmi.PresentationManagerImpl
- All Implemented Interfaces:
PresentationManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate static classNested classes/interfaces inherited from interface PresentationManager
PresentationManager.ClassData, PresentationManager.StubFactory, PresentationManager.StubFactoryFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.glassfish.pfl.basic.concurrent.WeakCache<Class<?>, PresentationManager.ClassData> private booleanprivate org.glassfish.pfl.basic.concurrent.WeakCache<Method, DynamicMethodMarshaller> private PrintStreamprivate booleanprivate static final ORBUtilSystemException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddNodes(List<String> resultList, Set<PresentationManagerImpl.NodeImpl> nodeSet) voidvoidTurn on internal debugging flags, which dump information about stub code generation to the PrintStream.voidflushClass(Class<?> cls) Remove all internal references to Class cls from the PresentationManager.getClassData(Class<?> cls) Get the ClassData for a particular class.booleangetDebug()getDynamicMethodMarshaller(Method 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) voidRegister the static StubFactoryFactory.voidRegister the dynamic StubFactoryFactory.booleanReturns 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
/////////////////////////////////////////////////////////////////////////////- Specified by:
getDynamicMethodMarshallerin interfacePresentationManager- Parameters:
method- Method for which we need a DynamicMethodMarshaller.- Returns:
- The DynamicMethodMarshaller.
-
getClassData
Description copied from interface:PresentationManagerGet 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:
getClassDatain interfacePresentationManager- Parameters:
cls- iClass fro which we need ClassData.- Returns:
- The ClassData.
-
getStubFactoryFactory
Description copied from interface:PresentationManagerReturn the registered StubFactoryFactory.- Specified by:
getStubFactoryFactoryin interfacePresentationManager- Parameters:
isDynamic- true iff we want the dynamic stub factory- Returns:
- static or dynamic stub factory.
-
getStaticStubFactoryFactory
Description copied from interface:PresentationManagerReturn the registered static StubFactoryFactory.- Specified by:
getStaticStubFactoryFactoryin interfacePresentationManager- Returns:
- static stub factory.
-
getDynamicStubFactoryFactory
Description copied from interface:PresentationManagerReturn the registered dynamic StubFactoryFactory.- Specified by:
getDynamicStubFactoryFactoryin 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:PresentationManagerEquivalent 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:
getTiein interfacePresentationManager- Returns:
- The static tie.
-
getRepositoryId
Description copied from interface:PresentationManagerGet the correct repository ID for the given implementation instance. This is useful when using dynamic RMI with the POA.- Specified by:
getRepositoryIdin interfacePresentationManager- Parameters:
impl- implementation- Returns:
- repository ID string
-
useDynamicStubs
public boolean useDynamicStubs()Description copied from interface:PresentationManagerReturns the value of the com.sun.corba.ee.ORBUseDynamicStub property.- Specified by:
useDynamicStubsin interfacePresentationManager- Returns:
- whether to use dynamic stubs.
-
flushClass
Description copied from interface:PresentationManagerRemove all internal references to Class cls from the PresentationManager. This allows ClassLoaders to be garbage collected when they are no longer needed.- Specified by:
flushClassin 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:
getDebugin interfacePresentationManager
-
getPrintStream
- Specified by:
getPrintStreamin interfacePresentationManager
-