Package org.jboss.modules
Class Main
- java.lang.Object
-
- org.jboss.modules.Main
-
public final class Main extends java.lang.Object
The 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.String
JAR_NAME
private static java.lang.String[]
NO_STRINGS
private static java.lang.String
VERSION_STRING
-
Constructor Summary
Constructors Modifier Constructor Description private
Main()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getJarName()
Get the name of the JBoss Modules JAR.private static java.lang.String
getServiceName(java.lang.ClassLoader classLoader, java.lang.String className)
static java.lang.String
getVersionString()
Get the version string of JBoss Modules.static void
main(java.lang.String[] args)
Run JBoss Modules.private static void
usage()
-
-
-
Method Detail
-
usage
private static void usage()
-
main
public static void main(java.lang.String[] args) throws java.lang.Throwable
Run 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
-
-