org.ow2.jonas.generators.genic
Class BeanSources

java.lang.Object
  extended by org.ow2.jonas.generators.genic.BeanSources

public class BeanSources
extends 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
 
Method Summary
 void generate()
          Generates the java sources
 String getEjbName()
           
 Collection getNoRemoteJavas()
           
 String getWrpHomeClassName()
           
 String getWrpHomeClusterFileName()
           
 String getWrpHomeFileName()
           
 String getWrpRemoteClassName()
           
 String getWrpRemoteClusterFileName()
           
 String getWrpRemoteFileName()
           
 String getWrpSEHomeFileName()
           
 String getWrpServiceEndpointClassName()
           
 String getWrpServiceEndpointFileName()
           
 void init(org.objectweb.jorm.compiler.lib.JormCompiler jc, org.objectweb.jorm.metainfo.api.Manager mgr)
          BeanSources initialization.
 void jormCompile(ArrayList jormList)
           
 
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)
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
Method Detail

init

public void init(org.objectweb.jorm.compiler.lib.JormCompiler jc,
                 org.objectweb.jorm.metainfo.api.Manager mgr)
          throws GenICException
BeanSources initialization.

Parameters:
jc -
mgr -
Throws:
GenICException - In error case

generate

public void generate()
              throws GenICException
Generates the java sources

Throws:
GenICException - in error case

jormCompile

public void jormCompile(ArrayList jormList)
                 throws GenICException
Throws:
GenICException

getEjbName

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

getWrpHomeFileName

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

getWrpHomeClusterFileName

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

getWrpRemoteClusterFileName

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

getWrpRemoteFileName

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

getWrpRemoteClassName

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

getWrpServiceEndpointFileName

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

getWrpSEHomeFileName

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

getWrpServiceEndpointClassName

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

getWrpHomeClassName

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

getNoRemoteJavas

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


Copyright © 2010 OW2 Consortium. All Rights Reserved.