Class GenericHomeGenerator


  • public class GenericHomeGenerator
    extends Generator
    This class is used to generate a sub-interface of the GenericEJBHome interface that will be loaded within each application.
    • Constructor Detail

      • GenericHomeGenerator

        public GenericHomeGenerator​(ClassLoader loader,
                                    Class<?> anchorClass)
        Parameters:
        loader - ClassLoader owning generated classes
        anchorClass -
    • Method Detail

      • 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 final String getGeneratedClassName()
        Get the fully qualified name of the generated class.
        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