|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas_ejb.genic.GenIC
This class allows to generate:
Field Summary | |
static java.lang.String |
CMI_RMI
CMI protocol |
static java.lang.String |
JEREMIE
JEREMIE protocol |
static java.lang.String |
RMI_IIOP
IIOP protocol |
static java.lang.String |
RMI_JRMP
JRMP protocol |
Constructor Summary | |
GenIC(DeploymentDesc ejbJarDesc,
java.lang.String dirOutputName,
boolean isVerbose)
GenIC Constructor: generates the container classes sources of each beans |
Method Summary | |
void |
addClassesInJar(java.lang.String jarFileName,
boolean keepGenerated)
Add the generated classes in the given ejb-jar file. |
static void |
callClusterCompiler(java.lang.String[] args)
Call the compiler for Cluster stubs |
void |
clean()
Clean the intermediate generated files. |
void |
compilClasses(java.lang.String nameJavac,
java.util.List optionsJavaC,
java.util.List optionsRmiC,
java.lang.String classpath,
org.objectweb.jonas_ejb.genic.ProtocolNames protocols,
boolean keepGenerated,
boolean invkCmd)
Compiles the java sources generated by the constructor I.e. |
void |
genClusterFiles(java.lang.String classpath,
boolean isKeepGenerated)
Generate the cluster stub files from the cluster config files. |
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 |
Field Detail |
public static final java.lang.String RMI_JRMP
public static final java.lang.String RMI_IIOP
public static final java.lang.String JEREMIE
public static final java.lang.String CMI_RMI
Constructor Detail |
public GenIC(DeploymentDesc ejbJarDesc, java.lang.String dirOutputName, boolean isVerbose) throws GenICException
ejbJarDesc
- deployment descriptors of the beansdirOutputName
- path of the directory where to place the generated
files (empty string "" if the output directory is the current
directory)isVerbose
- if true, some traces are print
GenICException
- In error caseMethod Detail |
public static void main(java.lang.String[] args)
Usage: java org.objectweb.jonas_ejb.genic.GenIC -help
to print this help message
or java org.objectweb.jonas_ejb.genic.GenIC
Options include:
Input_File file name of the standard deployment descriptor (.xml ended),
or file name of the EJB-jar (.jar ended).
to generate the container classes for the given EJBs.
args
- arguments for GenIC
public void compilClasses(java.lang.String nameJavac, java.util.List optionsJavaC, java.util.List optionsRmiC, java.lang.String classpath, org.objectweb.jonas_ejb.genic.ProtocolNames protocols, boolean keepGenerated, boolean invkCmd) throws GenICException
nameJavac
- name the javac tool to use (if null, take the standard
tool)optionsJavaC
- options for the javac tooloptionsRmiC
- options for the rmic toolclasspath
- classpath valueprotocols
- names of protocolskeepGenerated
- keep the generatef files or notinvkCmd
- run the javac command directly by invoking the compile
method of the javac compiler
GenICException
- In error casepublic static void callClusterCompiler(java.lang.String[] args) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
args
- arguments of the compiler
java.lang.ClassNotFoundException
- if class is not found
java.lang.InstantiationException
- if instantiation failed
java.lang.SecurityException
- if security failed
java.lang.NoSuchMethodException
- if the method doesnt' exist
java.lang.IllegalArgumentException
- if the argument are illegal
java.lang.IllegalAccessException
- if the access is illegal
java.lang.reflect.InvocationTargetException
- if the invocation failpublic void genClusterFiles(java.lang.String classpath, boolean isKeepGenerated) throws GenICException
classpath
- classpath to useisKeepGenerated
- keep the generated files ?
GenICException
- if the cluster are not generatedpublic void addClassesInJar(java.lang.String jarFileName, boolean keepGenerated) throws GenICException
jarFileName
- name of the jarkeepGenerated
- keep the generated files or not ?
GenICException
- if the classes cannot be added in the jar filepublic void clean()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |