com.sun.ejb.codegen
Class WrapperGenerator

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

public class WrapperGenerator
extends Generator

This class is used to generate the type specific EJBObject 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
WrapperGenerator(DeploymentContext context, EjbDescriptor dd, boolean isLocal, java.util.Vector existingClassNames)
          Construct the Wrapper generator with the specified deployment descriptor and class loader.
 
Method Summary
 void generate(java.io.OutputStream out)
          Generate the code to the specified output stream.
static java.lang.String getDefaultEJBObjectImplClassName(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

REMOTE_SUFFIX

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

LOCAL_SUFFIX

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

WrapperGenerator

public WrapperGenerator(DeploymentContext context,
                        EjbDescriptor dd,
                        boolean isLocal,
                        java.util.Vector existingClassNames)
                 throws GeneratorException
Construct the Wrapper generator with the specified deployment descriptor and class loader.

Parameters:
the - Deployment Descriptor
the - class loader.
Throws:
GeneratorException.
GeneratorException
Method Detail

getGeneratedClass

public java.lang.String getGeneratedClass()
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:
getGeneratedClass in class Generator
Returns:
the name of the generated class.

getDefaultEJBObjectImplClassName

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

generate

public void generate(java.io.OutputStream out)
              throws GeneratorException,
                     java.io.IOException
Generate the code to the specified output stream.

Parameters:
the - output stream
Throws:
GeneratorException - on a generation error
java.io.IOException - on an IO error


Copyright © 2012 GlassFish Community. All Rights Reserved.