org.objectweb.jonas_ejb.genic
Class BeanSources

java.lang.Object
  extended byorg.objectweb.jonas_ejb.genic.BeanSources

public class BeanSources
extends java.lang.Object

This class allows to generate the sources of: the class that implements the Enterprise bean's remote interface, the class that implements the Enterprise bean's home interface, the class that implements the Enterprise bean's local interface, the class that implements the Enterprise bean's localhome interface, the class of the Entity Handle in case of entity, and the extended class of the Bean for persistence in case of entity with CMP, of a given Enterprise Java Bean.


Constructor Summary
BeanSources(BeanDesc beanDesc, java.lang.String dirOutputName)
          GenIC Constructor
BeanSources(BeanDesc beanDesc, java.lang.String dirOutputName, org.objectweb.jorm.metainfo.api.Manager manager)
          GenIC Constructor
 
Method Summary
 void generate()
          Generates the java sources
 java.lang.String getEjbName()
          Return the bean's name
 java.util.Collection getNoRemoteJavas()
           
 java.lang.String getWrpHomeClassName()
          Return the class name of the generated source for the Home (package included)
 java.lang.String getWrpHomeClusterConfFileName()
          Return the file name of the cluster configuration for the Home (null if none)
 java.lang.String getWrpHomeFileName()
          Return the file name of the generated source for the Home (null if none)
 java.lang.String getWrpRemoteClassName()
          Return the class name of the generated source for the Remote (package included)
 java.lang.String getWrpRemoteFileName()
          Return the file name of the generated source for the Remote (null if none)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanSources

public BeanSources(BeanDesc beanDesc,
                   java.lang.String dirOutputName,
                   org.objectweb.jorm.metainfo.api.Manager manager)
            throws GenICException
GenIC Constructor

Parameters:
beanDesc - deployment descriptor of the bean
dirOutputName - path of the directory where to place the generated files (empty string "" if the output directory is the current directory)
Throws:
GenICException - In error case

BeanSources

public BeanSources(BeanDesc beanDesc,
                   java.lang.String dirOutputName)
            throws GenICException
GenIC Constructor

Parameters:
beanDesc - deployment descriptor of the bean
dirOutputName - path of the directory where to place the generated files (empty string "" if the output directory is the current directory)
Throws:
GenICException - In error case
Method Detail

generate

public void generate()
              throws GenICException
Generates the java sources

Throws:
GenICException

getEjbName

public java.lang.String getEjbName()
Return the bean's name


getWrpHomeFileName

public java.lang.String getWrpHomeFileName()
Return the file name of the generated source for the Home (null if none)


getWrpHomeClusterConfFileName

public java.lang.String getWrpHomeClusterConfFileName()
Return the file name of the cluster configuration for the Home (null if none)


getWrpRemoteFileName

public java.lang.String getWrpRemoteFileName()
Return the file name of the generated source for the Remote (null if none)


getWrpRemoteClassName

public java.lang.String getWrpRemoteClassName()
Return the class name of the generated source for the Remote (package included)


getWrpHomeClassName

public java.lang.String getWrpHomeClassName()
Return the class name of the generated source for the Home (package included)


getNoRemoteJavas

public java.util.Collection getNoRemoteJavas()