Package org.simplericity.jettyconsole
Class JettyConsoleBootstrapMainClass
- java.lang.Object
-
- org.simplericity.jettyconsole.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 theJettyConsoleStarter's main method. On shutdown, this class will remove the temporatily extracted jar files.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJettyConsoleBootstrapMainClass.Option
-
Field Summary
Fields Modifier and Type Field Description static StringDESCRIPTIONstatic StringOPTION_NAMEstatic StringSAMPLEstatic StringSECTION
-
Constructor Summary
Constructors Constructor Description JettyConsoleBootstrapMainClass()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Map<String,JettyConsoleBootstrapMainClass.Option>getOptionsByName()static FilegetWarLocation()Return a File pointing to the location of the Jar file this Main method is executed from.static voidmain(String[] arguments)Create an instance of Main and invoke therun()method.voidrun()Delete the temporary directory on shutdown.static voidstart(String[] arguments)static voidstop(String[] args)static voidusage()static voidusage(String args)
-
-
-
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 therun()method.- Parameters:
arguments-- Throws:
Exception
-
getOptionsByName
public static Map<String,JettyConsoleBootstrapMainClass.Option> getOptionsByName()
-
run
public void run()
Delete the temporary directory on shutdown.
-
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)
-
-