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.

Author:
Helene Joanin : Initial developer, Philippe Durieux, Sebastien Chassande

Constructor Summary
BeanSources(BeanDesc beanDesc, GenICParameters gp, org.apache.velocity.app.VelocityEngine ve)
          BeanSources Constructor for bean that is not a entity with CMP2
BeanSources(BeanDesc beanDesc, GenICParameters gp, org.apache.velocity.app.VelocityEngine ve, org.objectweb.jorm.compiler.lib.JormCompiler jormCompiler)
          BeanSources Constructor for entity bean with CMP2
 
Method Summary
 void generate()
          Generates the java sources
 java.lang.String getEjbName()
           
 java.util.Collection getNoRemoteJavas()
           
 java.lang.String getWrpHomeClassName()
           
 java.lang.String getWrpHomeClusterFileName()
           
 java.lang.String getWrpHomeFileName()
           
 java.lang.String getWrpRemoteClassName()
           
 java.lang.String getWrpRemoteClusterFileName()
           
 java.lang.String getWrpRemoteFileName()
           
 java.lang.String getWrpSEHomeFileName()
           
 java.lang.String getWrpServiceEndpointClassName()
           
 java.lang.String getWrpServiceEndpointFileName()
           
 
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,
                   GenICParameters gp,
                   org.apache.velocity.app.VelocityEngine ve,
                   org.objectweb.jorm.compiler.lib.JormCompiler jormCompiler)
            throws GenICException
BeanSources Constructor for entity bean with CMP2

Parameters:
beanDesc - deployment descriptor of the bean
gp - GenIC parameters
ve - the Velocity engine
jormCompiler - the JROM compiler
Throws:
GenICException - In error case

BeanSources

public BeanSources(BeanDesc beanDesc,
                   GenICParameters gp,
                   org.apache.velocity.app.VelocityEngine ve)
            throws GenICException
BeanSources Constructor for bean that is not a entity with CMP2

Parameters:
beanDesc - deployment descriptor of the bean
gp - @param gp GenIC parameters
ve - the Velocity engine
Throws:
GenICException - In error case
Method Detail

generate

public void generate()
              throws GenICException
Generates the java sources

Throws:
GenICException - in error case

getEjbName

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

getWrpHomeFileName

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

getWrpHomeClusterFileName

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

getWrpRemoteClusterFileName

public java.lang.String getWrpRemoteClusterFileName()
Returns:
Return the file name of the cluster configuration for the Remote (null if none)

getWrpRemoteFileName

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

getWrpRemoteClassName

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

getWrpServiceEndpointFileName

public java.lang.String getWrpServiceEndpointFileName()
Returns:
Return the file name of the generated source for the ServiceEndpoint (null if none)

getWrpSEHomeFileName

public java.lang.String getWrpSEHomeFileName()
Returns:
Return the file name of the generated source for the ServiceEndpointHome (null if none)

getWrpServiceEndpointClassName

public java.lang.String getWrpServiceEndpointClassName()
Returns:
Return the class name of the generated source for the ServiceEndpoint (package included)

getWrpHomeClassName

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

getNoRemoteJavas

public java.util.Collection getNoRemoteJavas()
Returns:
Returns the list of the sources that are not Remote