Package com.sun.ejb.codegen
Class GenericHomeGenerator
java.lang.Object
com.sun.ejb.codegen.Generator
com.sun.ejb.codegen.GenericHomeGenerator
This class is used to generate a sub-interface of the
GenericEJBHome interface that will be loaded within each
application.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sun.ejb.codegen.Generator
generate, getBaseName, getClassLoader, getFullClassName, getPackageName, removeRedundantMethods
-
Field Details
-
GENERIC_HOME_CLASSNAME
- See Also:
-
-
Constructor Details
-
GenericHomeGenerator
- Parameters:
loader-ClassLoaderowning generated classesanchorClass-
-
-
Method Details
-
getPackageName
- Specified by:
getPackageNamein classGenerator- Returns:
- the name of the package of the generated class.
-
getGeneratedClassName
Get the fully qualified name of the generated class.- Specified by:
getGeneratedClassNamein classGenerator- Returns:
- the name of the generated 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
-