Package com.sun.ejb.codegen
Class RemoteGenerator
- java.lang.Object
-
- com.sun.ejb.codegen.Generator
-
- com.sun.ejb.codegen.RemoteGenerator
-
- All Implemented Interfaces:
ClassGeneratorFactory
public final class RemoteGenerator extends Generator
This class is used to generate the RMI-IIOP version of a remote business interface.
-
-
Constructor Summary
Constructors Constructor Description RemoteGenerator(ClassLoader classLoader, String businessIntf)Construct the Wrapper generator with the specified deployment descriptor and class loader.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevaluate()CallsWrappermethods to configure the class definition.Class<?>getAnchorClass()StringgetGeneratedClassName()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
getBaseName, getPackageName, removeRedundantMethods
-
-
-
-
Constructor Detail
-
RemoteGenerator
public RemoteGenerator(ClassLoader classLoader, String businessIntf) throws InvalidBean
Construct the Wrapper generator with the specified deployment descriptor and class loader.- Parameters:
classLoader-businessIntf-- Throws:
InvalidBean- if the businessInterface doesn't exist.
-
-
Method Detail
-
getGeneratedRemoteIntfName
public static String getGeneratedRemoteIntfName(String businessIntf)
Adds _Remote to the original name.- Parameters:
businessIntf- full class name
-
getGeneratedClassName
public String 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.
- Returns:
- the name of the generated class.
-
getAnchorClass
public Class<?> getAnchorClass()
- Returns:
- loadable class of the same package as
ClassGeneratorFactory.getGeneratedClassName()
-
evaluate
public void evaluate()
Description copied from interface:ClassGeneratorFactoryCallsWrappermethods to configure the class definition.
-
-