Interface PresentationManager
- All Known Implementing Classes:
PresentationManagerImpl
public interface PresentationManager
Provides access to RMI-IIOP stubs and ties.
Any style of stub and tie generation may be used.
This includes compiler generated stubs and runtime generated stubs
as well as compiled and reflective ties. There is normally
only one instance of this interface per VM. The instance
is obtained from the static method
com.sun.corba.se.spi.orb.ORB.getPresentationManager.
Note that the getClassData and getDynamicMethodMarshaller methods maintain caches to avoid redundant computation.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceCreates the actual stub needed for RMI-IIOP remote references.static interfaceCreates StubFactory and Tie instances. -
Method Summary
Modifier and TypeMethodDescriptiongetClassData(Class cls) Get the ClassData for a particular class.getDynamicMethodMarshaller(Method method) Given a particular method, return a DynamicMethodMarshaller for that method.getStubFactoryFactory(boolean isDynamic) Return the registered StubFactoryFactory.getTie()Equivalent to getStubFactoryFactory( true ).getTie( null ).voidsetStubFactoryFactory(boolean isDynamic, PresentationManager.StubFactoryFactory sff) Register the StubFactoryFactory.booleanReturns the value of the com.sun.CORBA.ORBUseDynamicStub property.
-
Method Details
-
getClassData
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. -
getDynamicMethodMarshaller
Given a particular method, return a DynamicMethodMarshaller for that method. This is used for dynamic stubs and ties. -
getStubFactoryFactory
Return the registered StubFactoryFactory. -
setStubFactoryFactory
Register the StubFactoryFactory. Note that a static StubFactoryFactory is always required for IDL. The dynamic stubFactoryFactory is optional. -
getTie
Tie getTie()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. -
useDynamicStubs
boolean useDynamicStubs()Returns the value of the com.sun.CORBA.ORBUseDynamicStub property.
-