Package com.sun.ejb.codegen
Class GenericHomeGenerator
- java.lang.Object
-
- com.sun.ejb.codegen.Generator
-
- com.sun.ejb.codegen.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.
-
-
Field Summary
Fields Modifier and Type Field Description static StringGENERIC_HOME_CLASSNAME
-
Constructor Summary
Constructors Constructor Description GenericHomeGenerator(ClassLoader loader, Class<?> anchorClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineClassBody()CallsWrappermethods to configure the class definition.Class<?>getAnchorClass()StringgetGeneratedClassName()Get the fully qualified name of the generated class.StringgetPackageName()-
Methods inherited from class com.sun.ejb.codegen.Generator
generate, getBaseName, getClassLoader, getPackageName, removeRedundantMethods
-
-
-
-
Field Detail
-
GENERIC_HOME_CLASSNAME
public static final String GENERIC_HOME_CLASSNAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GenericHomeGenerator
public GenericHomeGenerator(ClassLoader loader, Class<?> anchorClass)
- Parameters:
loader-ClassLoaderowning generated classesanchorClass-
-
-
Method Detail
-
getPackageName
public String getPackageName()
- Specified by:
getPackageNamein classGenerator- 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:
getGeneratedClassNamein classGenerator- Returns:
- the name of the generated class.
-
getAnchorClass
public Class<?> getAnchorClass()
- Specified by:
getAnchorClassin classGenerator- Returns:
- loadable class of the same package as
Generator.getGeneratedClassName()
-
defineClassBody
public void defineClassBody()
Description copied from class:GeneratorCallsWrappermethods to configure the class definition. TheWrapperusesThreadLocalinternally, so you should always callWrapper._clear()in finally block after generation to avoid leakages.- Specified by:
defineClassBodyin classGenerator
-
-