Class Remote30WrapperGenerator


  • public final class Remote30WrapperGenerator
    extends Generator
    Generator of EJB 3.0+ Remote client stub implementations.
    • Constructor Detail

      • Remote30WrapperGenerator

        public Remote30WrapperGenerator​(ClassLoader loader,
                                        String businessIntfName,
                                        String remoteInterfaceName)
                                 throws GeneratorException
        Construct the Wrapper generator with the specified deployment descriptor and class loader.
        Parameters:
        loader -
        businessIntfName - must already exist and be loadable by the loader
        remoteInterfaceName - generated class will implement this
        Throws:
        GeneratorException
    • Method Detail

      • getGeneratedRemoteWrapperName

        public static String getGeneratedRemoteWrapperName​(String businessIntf)
        Adds _Wrapper to the original name.
        Parameters:
        businessIntf - full class name
        Returns:
        [businessIntf]_Wrapper
      • getPackageName

        public String getPackageName()
        Specified by:
        getPackageName in class Generator
        Returns:
        the name of the package of the generated class. Can be null.
      • 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