com.sun.ejb.codegen
Class HomeGenerator

java.lang.Object
  extended by com.sun.ejb.codegen.Generator
      extended by com.sun.ejb.codegen.HomeGenerator

public class HomeGenerator
extends Generator

This class generates the EJBHome implementation.


Field Summary
static java.lang.String LOCAL_SUFFIX
           
static java.lang.String REMOTE_SUFFIX
           
 
Fields inherited from class com.sun.ejb.codegen.Generator
_logger, ejbClassSymbol
 
Constructor Summary
HomeGenerator(DeploymentContext context, EjbDescriptor dd, boolean isLocal, java.util.Vector existingClassNames)
           
 
Method Summary
 void generate(java.io.OutputStream out)
           
static java.lang.String getDefaultRemoteHomeImplClassName(EjbDescriptor desc)
           
 java.lang.String getGeneratedClass()
          Get the fully qualified name of the generated class.
 
Methods inherited from class com.sun.ejb.codegen.Generator
getBaseName, getPackageName, getSecurityAttribute, getTxAttribute, getUniqueClassName, isEJBIntfMethod, printStaticMethodInit, printType, removeDups
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCAL_SUFFIX

public static final java.lang.String LOCAL_SUFFIX
See Also:
Constant Field Values

REMOTE_SUFFIX

public static final java.lang.String REMOTE_SUFFIX
See Also:
Constant Field Values
Constructor Detail

HomeGenerator

public HomeGenerator(DeploymentContext context,
                     EjbDescriptor dd,
                     boolean isLocal,
                     java.util.Vector existingClassNames)
              throws GeneratorException
Throws:
GeneratorException
Method Detail

getGeneratedClass

public java.lang.String getGeneratedClass()
Get the fully qualified name of the generated class. Note: the home implementation class is in the same package as the bean class, NOT the home interface.

Specified by:
getGeneratedClass in class Generator
Returns:
the name of the generated class.

getDefaultRemoteHomeImplClassName

public static java.lang.String getDefaultRemoteHomeImplClassName(EjbDescriptor desc)

generate

public void generate(java.io.OutputStream out)
              throws GeneratorException,
                     java.io.IOException
Throws:
GeneratorException - on a generation error
java.io.IOException - on an IO error


Copyright © 2012 GlassFish Community. All Rights Reserved.