Class PresentationManagerImpl

java.lang.Object
com.sun.corba.ee.impl.presentation.rmi.PresentationManagerImpl
All Implemented Interfaces:
PresentationManager

public final class PresentationManagerImpl extends Object implements PresentationManager
  • Constructor Details

    • PresentationManagerImpl

      public PresentationManagerImpl(boolean useDynamicStubs)
  • Method Details

    • getDynamicMethodMarshaller

      public DynamicMethodMarshaller getDynamicMethodMarshaller(Method method)
      /////////////////////////////////////////////////////////////////////////////
      Specified by:
      getDynamicMethodMarshaller in interface PresentationManager
      Parameters:
      method - Method for which we need a DynamicMethodMarshaller.
      Returns:
      The DynamicMethodMarshaller.
    • getClassData

      public PresentationManager.ClassData getClassData(Class<?> cls)
      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 interface PresentationManager
      Parameters:
      cls - iClass fro which we need ClassData.
      Returns:
      The ClassData.
    • getStubFactoryFactory

      public PresentationManager.StubFactoryFactory getStubFactoryFactory(boolean isDynamic)
      Description copied from interface: PresentationManager
      Return the registered StubFactoryFactory.
      Specified by:
      getStubFactoryFactory in interface PresentationManager
      Parameters:
      isDynamic - true iff we want the dynamic stub factory
      Returns:
      static or dynamic stub factory.
    • getStaticStubFactoryFactory

      public PresentationManager.StubFactoryFactory getStaticStubFactoryFactory()
      Description copied from interface: PresentationManager
      Return the registered static StubFactoryFactory.
      Specified by:
      getStaticStubFactoryFactory in interface PresentationManager
      Returns:
      static stub factory.
    • getDynamicStubFactoryFactory

      public PresentationManager.StubFactoryFactory getDynamicStubFactoryFactory()
      Description copied from interface: PresentationManager
      Return the registered dynamic StubFactoryFactory.
      Specified by:
      getDynamicStubFactoryFactory in interface PresentationManager
      Returns:
      dynamic stub factory.
    • setStaticStubFactoryFactory

      public void setStaticStubFactoryFactory(PresentationManager.StubFactoryFactory sff)
      Register the dynamic StubFactoryFactory. Note that a dynamic StubFactoryFactory is optional.
      Parameters:
      sff - Factory to register
    • setDynamicStubFactoryFactory

      public void setDynamicStubFactoryFactory(PresentationManager.StubFactoryFactory sff)
      Register the static StubFactoryFactory. Note that a static StubFactoryFactory is always required for IDL.
      Parameters:
      sff - Factory to Register
    • getTie

      public Tie 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 interface PresentationManager
      Returns:
      The static tie.
    • getRepositoryId

      public String getRepositoryId(Remote impl)
      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 interface PresentationManager
      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 interface PresentationManager
      Returns:
      whether to use dynamic stubs.
    • flushClass

      public void flushClass(Class<?> cls)
      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 interface PresentationManager
      Parameters:
      cls - Class to flush
    • enableDebug

      public void enableDebug(PrintStream ps)
      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 interface PresentationManager
    • getPrintStream

      public PrintStream getPrintStream()
      Specified by:
      getPrintStream in interface PresentationManager