FileDocCategorySizeDatePackage
GenericHomeGenerator.javaAPI DocGlassfish v2 API4155Fri May 04 22:32:58 BST 2007com.sun.ejb.codegen

GenericHomeGenerator

public class GenericHomeGenerator extends Generator implements ClassGeneratorFactory
This class is used to generate a sub-interface of the GenericEJBHome interface that will be loaded within each application.

Fields Summary
private static com.sun.enterprise.util.LocalStringManagerImpl
localStrings
private static final Logger
_logger
private String
genericEJBHomeClassName
private ClassLoader
loader
Constructors Summary
public GenericHomeGenerator(ClassLoader cl)

	super();

        genericEJBHomeClassName = EJBUtils.getGenericEJBHomeClassName();
        loader = cl;
    
Methods Summary
public java.lang.StringclassName()

        return getGeneratedClass();
    
public com.sun.corba.ee.impl.codegen.ClassGeneratorevaluate()


        _clear();

        String packageName = getPackageName(genericEJBHomeClassName);
        String simpleName = getBaseName (genericEJBHomeClassName);

        _package(packageName);

        _interface(PUBLIC, simpleName, 
                   _t("com.sun.ejb.containers.GenericEJBHome"));

        _method(PUBLIC | ABSTRACT, _t("java.rmi.Remote"),
                "create", _t("java.rmi.RemoteException"));

        _arg(_String(), "generatedBusinessIntf");

        _end();

        _end();

        return _classGenerator() ;
    
public voidgenerate(java.io.OutputStream out)

        throw new IllegalStateException("not supported");
    
public java.lang.StringgetGeneratedClass()
Get the fully qualified name of the generated class.

return
the name of the generated class.


                         
       
        return genericEJBHomeClassName;