Package com.sun.ejb.codegen
Class RemoteGenerator
java.lang.Object
com.sun.ejb.codegen.Generator
com.sun.ejb.codegen.RemoteGenerator
This class is used to generate the RMI-IIOP version of a remote business interface.
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteGenerator(ClassLoader classLoader, String businessIntf) Construct the Wrapper generator with the specified deployment descriptor and class loader. -
Method Summary
Modifier and TypeMethodDescriptionvoidCallsWrappermethods to configure the class definition.Class<?>Get the fully qualified name of the generated class.static StringgetGeneratedRemoteIntfName(String businessIntf) Adds _Remote to the original name.Methods inherited from class com.sun.ejb.codegen.Generator
generate, getBaseName, getClassLoader, getFullClassName, getPackageName, removeRedundantMethods
-
Constructor Details
-
RemoteGenerator
Construct the Wrapper generator with the specified deployment descriptor and class loader.- Parameters:
classLoader- the class loaderbusinessIntf- the full qualified class name- Throws:
GeneratorException- if the businessInterface doesn't exist.
-
-
Method Details
-
getGeneratedRemoteIntfName
Adds _Remote to the original name.- Parameters:
businessIntf- full class name
-
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.Note: the remote/local implementation class is in the same package as the bean class, NOT the remote/local interface.
- 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
-