| java.lang.Object org.objectweb.jonas_ejb.genic.GenIC
GenIC | public class GenIC (Code) | | This class allows to generate:
- the classes that implements the Enterprise bean's remote interface,
- the classes that implements the Enterprise bean's home interface,
- the classes that implements the Handles of the Entity beans,
- the classes that implements the persistence of the Entity beans with
CMP,
of all the Enterprise Java Beans defined in the given Deployment Descriptor.
author: Helene Joanin : Initial developer author: Christophe Ney (Lutris Technologies) : Fix to handle arguments containing white spaces. author: Guillaume Riviere : Fix the addClassesInJar() method (on David, the Stub/Skel classes names are different). author: Dean Jennings : Remove System Exit (called now from server) author: Sami Lehtinen : use of java.util.jar api instead of jar command |
addClassesInJar | public void addClassesInJar() throws GenICException(Code) | | Add the generated classes in the given ejb-jar file.
throws: GenICException - if the classes cannot be added in the jar file |
clean | public void clean()(Code) | | Clean the intermediate generated files.
|
compilClasses | public void compilClasses(String classpath) throws GenICException(Code) | | 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
Parameters: classpath - classpath value exception: GenICException - In error case |
convertName | protected String convertName(String name)(Code) | | Convert a name from any format in Jar filename format
Parameters: name - filename to be converted converted filename |
createTempDir | static String createTempDir() throws IOException(Code) | | Create a cleaned temporary directory.
the temp directory file name throws: IOException - if a temp directory cannot be created. |
error | static void error(String msg)(Code) | | Display the specified error message.
Parameters: msg - the error message to display |
fatalError | static void fatalError(String msg, Exception e)(Code) | | Display the specified error message and exits with an EXIT_FAILURE
status.
Parameters: msg - the error message to display Parameters: e - the exception raised |
fatalError | static void fatalError(Exception e)(Code) | | Display the specified error message and exits with an EXIT_FAILURE
status.
Parameters: e - the error to display |
getFilesList | static void getFilesList(String dir, ArrayList list, boolean onlyClass)(Code) | | Get the list file names recursively of the given directory
Parameters: dir - the directory used to list files Parameters: list - list to store filenames Parameters: onlyClass - stores only class or not ? |
info | static void info(String msg)(Code) | | Display the specified message.
Parameters: msg - the message to display |
main | public static void main(String[] args)(Code) | | 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:
- -d specify where to place the generated files
- -noaddinjar do not add the generated classes in the given ejb-jar
file
- -classpath define the classpath to be used to compile classes
- -nocompil do not compile the generated source files via the java and
rmi compilers
- -novalidation parse the XML deployment descriptors without
validation
- -javac specify the name of the java compiler to use
- -javacopts specify the options to pass to the java compiler
- -rmicopts specify the options to pass to the rmi compiler
- -protocols list of protocol, separated by comma
- -keepgenerated do not delete intermediate generated source files
- -verbose
- -invokecmd invoke, in some case, directly the method of the java
class corresponding to the command
Input_File file name of the standard deployment descriptor (.xml ended),
or file name of the EJB-jar (.jar ended).
Parameters: args - arguments for GenIC |
printException | static void printException(Exception e, PrintStream out)(Code) | | Display the exception and its nested exception if exists, on the given
printstream.
Parameters: e - the exception to display Parameters: out - the PrintStream on which the exception has to displayed |
trace | void trace(String msg)(Code) | | Display the specified message only if verbose.
Parameters: msg - the message to display |
usage | static void usage()(Code) | | Display the usage
|
warning | static void warning(String msg)(Code) | | Display the specified warning message.
Parameters: msg - the warning message to display |
|
|