Package com.sun.ejb.codegen
Class Remote30WrapperGenerator
java.lang.Object
com.sun.ejb.codegen.Generator
com.sun.ejb.codegen.Remote30WrapperGenerator
Generator of EJB 3.0+ Remote client stub implementations.
-
Constructor Summary
ConstructorsConstructorDescriptionRemote30WrapperGenerator(ClassLoader loader, String businessIntfName, String remoteInterfaceName) Construct the Wrapper generator with the specified deployment descriptor and class loader. -
Method Summary
Modifier and TypeMethodDescriptionvoidCallsWrappermethods to configure the class definition.Class<?> static StringgetGeneratedRemoteWrapperName(String businessIntf) Adds _Wrapper to the original name.Methods inherited from class com.sun.ejb.codegen.Generator
generate, getBaseName, getClassLoader, getFullClassName, getPackageName, removeRedundantMethods
-
Constructor Details
-
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- class loaderbusinessIntfName- must already exist and be loadable by the loaderremoteInterfaceName- generated class will implement this- Throws:
GeneratorException- if an error occurred during class generation
-
-
Method Details
-
getGeneratedRemoteWrapperName
Adds _Wrapper to the original name.- Parameters:
businessIntf- full class name- Returns:
- [businessIntf]_Wrapper
-
getPackageName
- Specified by:
getPackageNamein classGenerator- Returns:
- the name of the package of the generated class.
-
getGeneratedClassName
- Specified by:
getGeneratedClassNamein classGenerator- Returns:
- name of the generated class or interface
-
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
-