Class RemoteGenerator


  • public final class RemoteGenerator
    extends Generator
    This class is used to generate the RMI-IIOP version of a remote business interface.
    • Constructor Detail

      • RemoteGenerator

        public RemoteGenerator​(ClassLoader classLoader,
                               String businessIntf)
                        throws GeneratorException
        Construct the Wrapper generator with the specified deployment descriptor and class loader.
        Parameters:
        classLoader -
        businessIntf -
        Throws:
        GeneratorException - if the businessInterface doesn't exist.
    • Method Detail

      • getGeneratedRemoteIntfName

        public static String getGeneratedRemoteIntfName​(String businessIntf)
        Adds _Remote to the original name.
        Parameters:
        businessIntf - full class name
      • getPackageName

        public String getPackageName()
        Specified by:
        getPackageName in class Generator
        Returns:
        the name of the package of the generated class. Can be null.
      • getGeneratedClassName

        public String getGeneratedClassName()
        Get the fully qualified name of the generated class.

        Note: the remote/local implementation class is in the same package as the bean class, NOT the remote/local interface.

        Specified by:
        getGeneratedClassName in class Generator
        Returns:
        the name of the generated class.
      • defineClassBody

        public void defineClassBody()
        Description copied from class: Generator
        Calls Wrapper methods to configure the class definition. The Wrapper uses ThreadLocal internally, so you should always call Wrapper._clear() in finally block after generation to avoid leakages.
        Specified by:
        defineClassBody in class Generator