com.sun.ejb.codegen
Class ServiceInterfaceGenerator

java.lang.Object
  extended by com.sun.ejb.codegen.Generator
      extended by com.sun.ejb.codegen.ServiceInterfaceGenerator
All Implemented Interfaces:
ClassGeneratorFactory

public class ServiceInterfaceGenerator
extends Generator
implements ClassGeneratorFactory

This class is responsible for generating the SEI when it is not packaged by the application.

Author:
Jerome Dochez

Field Summary
 
Fields inherited from class com.sun.ejb.codegen.Generator
ejbClassSymbol
 
Constructor Summary
ServiceInterfaceGenerator(java.lang.ClassLoader cl, java.lang.Class sib)
          Construct the Wrapper generator with the specified deployment descriptor and class loader.
 
Method Summary
 java.lang.String className()
           
 void evaluate()
           
 java.lang.String getGeneratedClass()
          Get the fully qualified name of the generated class.
 java.lang.String getPackageName()
           
 java.lang.String getServiceIntfName()
           
 
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
 

Constructor Detail

ServiceInterfaceGenerator

public ServiceInterfaceGenerator(java.lang.ClassLoader cl,
                                 java.lang.Class sib)
                          throws GeneratorException,
                                 java.lang.ClassNotFoundException
Construct the Wrapper generator with the specified deployment descriptor and class loader.

Throws:
GeneratorException.
GeneratorException
java.lang.ClassNotFoundException
Method Detail

getServiceIntfName

public java.lang.String getServiceIntfName()

getPackageName

public java.lang.String getPackageName()

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.

className

public java.lang.String className()
Specified by:
className in interface ClassGeneratorFactory

evaluate

public void evaluate()
Specified by:
evaluate in interface ClassGeneratorFactory


Copyright © 2012 GlassFish Community. All Rights Reserved.