Package org.jboss.modules
Class Main
- java.lang.Object
-
- org.jboss.modules.Main
-
public final class Main extends java.lang.ObjectThe main entry point of JBoss Modules when run as a JAR on the command line.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringJAR_NAMEprivate static java.lang.String[]NO_STRINGSprivate static java.lang.StringVERSION_STRING
-
Constructor Summary
Constructors Modifier Constructor Description privateMain()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetJarName()Get the name of the JBoss Modules JAR.private static java.lang.StringgetServiceName(java.lang.ClassLoader classLoader, java.lang.String className)static java.lang.StringgetVersionString()Get the version string of JBoss Modules.static voidmain(java.lang.String[] args)Run JBoss Modules.private static voidusage()
-
-
-
Method Detail
-
usage
private static void usage()
-
main
public static void main(java.lang.String[] args) throws java.lang.ThrowableRun JBoss Modules.- Parameters:
args- the command-line arguments- Throws:
java.lang.Throwable- if an error occurs
-
getServiceName
private static java.lang.String getServiceName(java.lang.ClassLoader classLoader, java.lang.String className) throws java.io.IOException- Throws:
java.io.IOException
-
getJarName
public static java.lang.String getJarName()
Get the name of the JBoss Modules JAR.- Returns:
- the name
-
getVersionString
public static java.lang.String getVersionString()
Get the version string of JBoss Modules.- Returns:
- the version string
-
-