Interface PresentationManager.StubFactoryFactory

All Known Implementing Classes:
StubFactoryFactoryBase, StubFactoryFactoryCodegenImpl, StubFactoryFactoryDynamicBase, StubFactoryFactoryProxyImpl, StubFactoryFactoryStaticImpl
Enclosing interface:
PresentationManager

public static interface PresentationManager.StubFactoryFactory
Creates StubFactory and Tie instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Return whether or not this StubFactoryFactory creates StubFactory instances that create dynamic stubs and ties.
    createStubFactory(String className, boolean isIDLStub, String remoteCodeBase, Class<?> expectedClass, ClassLoader classLoader)
    Create a stub factory for stubs for the interface whose type is given by className.
    getStubName(String className)
    Return the standard name of a stub (according to the RMI-IIOP specification and rmic).
    getTie(Class<?> cls)
    Return a Tie for the given class.
  • Method Details

    • getStubName

      String getStubName(String className)
      Return the standard name of a stub (according to the RMI-IIOP specification and rmic). This is needed so that the name of a stub is known for standalone clients of the app server.
      Parameters:
      className - name of the class
      Returns:
      the stub name
    • createStubFactory

      PresentationManager.StubFactory createStubFactory(String className, boolean isIDLStub, String remoteCodeBase, Class<?> expectedClass, ClassLoader classLoader)
      Create a stub factory for stubs for the interface whose type is given by className. className may identify either an IDL interface or an RMI-IIOP interface.
      Parameters:
      className - The name of the remote interface as a Java class name.
      isIDLStub - True if className identifies an IDL stub, else false.
      remoteCodeBase - The CodeBase to use for loading Stub classes, if necessary (may be null or unused).
      expectedClass - The expected stub type (may be null or unused).
      classLoader - The classLoader to use (may be null).
      Returns:
      The stub factory
    • getTie

      Tie getTie(Class<?> cls)
      Return a Tie for the given class.
      Parameters:
      cls - class
      Returns:
      The tie corresponding to cls
    • createsDynamicStubs

      boolean createsDynamicStubs()
      Return whether or not this StubFactoryFactory creates StubFactory instances that create dynamic stubs and ties. At the top level, true indicates that rmic -iiop is not needed for generating stubs or ties.
      Returns:
      true iff we are using dynamic stubs