Class JettyConsoleBootstrapMainClass

  • All Implemented Interfaces:
    Runnable

    public class JettyConsoleBootstrapMainClass
    extends Object
    implements Runnable
    The purpose of this class is to be the Main-Class of a JAR file. On startup, the class will extract the "real" application by extracing the jar files in /META-INF/jettyconsole/lib into a temporary directory, setting up a class loader and executing the JettyConsoleStarter's main method. On shutdown, this class will remove the temporatily extracted jar files.
    • Field Detail

      • OPTION_NAME

        public static String OPTION_NAME
      • SAMPLE

        public static String SAMPLE
      • DESCRIPTION

        public static String DESCRIPTION
      • SECTION

        public static String SECTION
    • Constructor Detail

      • JettyConsoleBootstrapMainClass

        public JettyConsoleBootstrapMainClass()
    • Method Detail

      • stop

        public static void stop​(String[] args)
      • main

        public static void main​(String[] arguments)
                         throws Exception
        Create an instance of Main and invoke the run() method.
        Parameters:
        arguments -
        Throws:
        Exception
      • run

        public void run()
        Delete the temporary directory on shutdown.
        Specified by:
        run in interface Runnable
      • getWarLocation

        public static File getWarLocation()
        Return a File pointing to the location of the Jar file this Main method is executed from.
        Returns:
      • usage

        public static void usage()
      • usage

        public static void usage​(String args)