|
||||||||||
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
|
static java.lang.String |
JEREMIE
|
static java.lang.String |
RMI_IIOP
|
static java.lang.String |
RMI_JRMP
|
Constructor Summary | |
GenIC(DeploymentDesc ejbJarDesc,
java.lang.String dirOutputName,
boolean isVerbose,
boolean isDebug)
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)
|
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,
org.objectweb.jonas_ejb.genic.ProtocolNames protocols,
boolean keepGenerated)
Compiles the java sources generated by the constructor I.e. : compile the classes via javac, create the stubs and skeletons for the protocols supported(RMI/JRMP, RMI/IIOP,JEREMIE) via rmic/jrmic |
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, boolean isDebug) 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 printisDebug
- if true, many debug 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.
public void compilClasses(java.lang.String nameJavac, java.util.Vector optionsJavaC, java.util.Vector optionsRmiC, java.lang.String classpath, org.objectweb.jonas_ejb.genic.ProtocolNames protocols, boolean keepGenerated) 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 protocols
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
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public void genClusterFiles(java.lang.String classpath, boolean isKeepGenerated) throws GenICException
GenICException
public void addClassesInJar(java.lang.String jarFileName, boolean keepGenerated) throws GenICException
GenICException
public void clean()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |