org.objectweb.jonas_ejb.genic
Class GenIC

java.lang.Object
  |
  +--org.objectweb.jonas_ejb.genic.GenIC

public class GenIC
extends java.lang.Object

This class allows to generate:

of all the Enterprise Java Beans defined in the given Deployment Descriptor.


Constructor Summary
GenIC(DeploymentDesc ejbJarDesc, java.lang.String dirOutputName, boolean isSecPropag, boolean isVerbose, boolean isDebug)
          GenIC Constructor
 
Method Summary
 void addClassesInJar(java.lang.String jarFileName)
          Add the generated classes in the given ejb-jar file.
 void clean()
          Clean the intermediate generated files.
 void compilClasses(java.lang.String nameJavac, java.util.Vector optionsJavaC, java.util.Vector optionsRmiC, java.lang.String classpath)
          Compiles the java sources generated by the genSources() method.
 void genSources()
           
static void main(java.lang.String[] args)
          GenIC allows to generate the container classes for JOnAS for the given Enterprise Java Beans.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenIC

public GenIC(DeploymentDesc ejbJarDesc,
             java.lang.String dirOutputName,
             boolean isSecPropag,
             boolean isVerbose,
             boolean isDebug)
      throws GenICException
GenIC Constructor
Parameters:
ejbJarDescr - deployment descriptors of the beans
dirOutputName - path of the directory where to place the generated files (empty string "" if the output directory is the current directory)
isSecPropag - generation with or without the security propagation of the transactionnal context
isVerbose - if true, some traces are print
isDebug - if true, many debug traces are print
Throws:
GenICException - In error case
Method Detail

main

public static void main(java.lang.String[] args)
GenIC allows to generate the container classes for JOnAS for the given Enterprise Java Beans.

Usage: java org.objectweb.jonas_ejb.genic.GenIC -help
to print this help message

or java org.objectweb.jonas_ejb.genic.GenIC
to generate the container classes for the given EJBs.

Options include:

Input_File file name of the standard deployment descriptor (.xml ended), or file name of the EJB-jar (.jar ended).


genSources

public void genSources()
                throws GenICException

compilClasses

public void compilClasses(java.lang.String nameJavac,
                          java.util.Vector optionsJavaC,
                          java.util.Vector optionsRmiC,
                          java.lang.String classpath)
                   throws GenICException
Compiles the java sources generated by the genSources() method. I.e. :
Parameters:
nameJavac - name the javac tool to use (if null, take the standard tool)
optionsJavaC - options for the javac tool
optionsRmiC - options for the rmic tool
classpath - classpath value
Throws:
GenICException - In error case

addClassesInJar

public void addClassesInJar(java.lang.String jarFileName)
                     throws GenICException
Add the generated classes in the given ejb-jar file.

clean

public void clean()
Clean the intermediate generated files.