com.sun.ejb.codegen
Class Generator

java.lang.Object
  extended by com.sun.ejb.codegen.Generator
Direct Known Subclasses:
GenericHomeGenerator, HomeGenerator, Remote30WrapperGenerator, RemoteGenerator, SerializableBeanGenerator, ServiceInterfaceGenerator, WrapperGenerator

public abstract class Generator
extends Object

The base class for all code generators.


Field Summary
protected static Logger _logger
           
protected  String ejbClassSymbol
           
 
Constructor Summary
Generator()
           
 
Method Summary
protected  String getBaseName(String className)
           
abstract  String getGeneratedClass()
           
protected  String getPackageName(String className)
          Get the package name from the class name.
protected  String getSecurityAttribute(EjbDescriptor dd, Method m)
           
protected  String getTxAttribute(EjbDescriptor dd, Method method)
           
protected  String getUniqueClassName(DeploymentContext context, String origName, String origSuffix, Vector existingClassNames)
           
protected  boolean isEJBIntfMethod(Class ejbIntfClz, Method methodToCheck)
          Return true if method is on a javax.ejb.EJBObject/EJBLocalObject/ javax.ejb.EJBHome,javax.ejb.EJBLocalHome interface.
protected  String[] printStaticMethodInit(IndentingWriter p, Class genClass, Method[] methods)
           
protected  String printType(Class cls)
           
protected  Method[] removeDups(Method[] orig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_logger

protected static final Logger _logger

ejbClassSymbol

protected String ejbClassSymbol
Constructor Detail

Generator

public Generator()
Method Detail

getGeneratedClass

public abstract String getGeneratedClass()

getPackageName

protected String getPackageName(String className)
Get the package name from the class name.

Parameters:
the - class name.
Returns:
the package name.

getBaseName

protected String getBaseName(String className)

printType

protected String printType(Class cls)

removeDups

protected Method[] removeDups(Method[] orig)

isEJBIntfMethod

protected boolean isEJBIntfMethod(Class ejbIntfClz,
                                  Method methodToCheck)
Return true if method is on a javax.ejb.EJBObject/EJBLocalObject/ javax.ejb.EJBHome,javax.ejb.EJBLocalHome interface.


printStaticMethodInit

protected String[] printStaticMethodInit(IndentingWriter p,
                                         Class genClass,
                                         Method[] methods)
                                  throws IOException
Throws:
IOException

getUniqueClassName

protected String getUniqueClassName(DeploymentContext context,
                                    String origName,
                                    String origSuffix,
                                    Vector existingClassNames)

getTxAttribute

protected String getTxAttribute(EjbDescriptor dd,
                                Method method)

getSecurityAttribute

protected String getSecurityAttribute(EjbDescriptor dd,
                                      Method m)


Copyright © 2012 GlassFish Community. All Rights Reserved.