All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.jaw.tools.MoGen
java.lang.Object
|
+----com.sun.jaw.tools.MoGen
- public final class MoGen
- extends Object
The class parses an M-bean (or a list of M-beans) and generates the associated C-beans.
In order to invoke the class, you need to invoke:
java com.sun.jaw.reference.mogen.Main[-ro] [-l className] [-f] [-nl] [-nlmo] [-nlas]
[-tp packageName] [-np] [-ne] [-nc] [-classpath path] [-help] class1...classN"
where:
- -ro: Generates read-only C-Bean stub.
- -nl: Does not generate listener code in C-Bean.
- -np: Does not generate performer code in C-Bean.
- -nlmo: Does not generate code for listener MO.
- -nlas: Does not generate code for listener agent stub.
- -ne: Does not generate code for events.
- -f: Generates flattened C-bean (include all inherited properties).
- -l className: Includes in C-bean all inherited methods up to the specified className.
- -tp packageName: Generates code in the target package specified by packageName.
- classpath: Specifies a classpath to use for locating the class to compile,
by default mogen will search in the directory where the invocation is made, then in the classpath
specified in the environment;
- help: Prints a usage message explaining how to invoke the compiler;
- class: The list of classes to compile, there is no need to specify the
".class" extension nor the whole class n.
In order to directly invoke the class, Java Dynamic Management provides a script called mogen.
On Solaris the script is provided under $(PACKAGE_ROOT)/jaw/bin. If you use default install
path the script is here.
-
gettargetDir()
- Returns the directory in which the compiler is supposed to generate
code.
-
main(String[])
- Invoke the compiler.
gettargetDir
public static String gettargetDir()
- Returns the directory in which the compiler is supposed to generate
code.
By default, the compiler uses the current directory. By using the "-d"
option, you can change the directory to use.
main
public static void main(String args[])
- Invoke the compiler.
All Packages Class Hierarchy This Package Previous Next Index