Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NO_STRINGS

        private static final java.lang.String[] NO_STRINGS
      • JAR_NAME

        private static final java.lang.String JAR_NAME
      • VERSION_STRING

        private static final java.lang.String VERSION_STRING
    • Constructor Detail

      • Main

        private Main()
    • 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