Class JettyConsoleBootstrapMainClass

java.lang.Object
  extended by 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.


Constructor Summary
JettyConsoleBootstrapMainClass()
           
 
Method Summary
 File getWarLocation()
          Return a File pointing to the location of the Jar file this Main method is executed from.
static void main(String[] arguments)
          Create an instance of Main and invoke the run() method.
 void run()
          Delete the temporary directory on shutdown.
static void start(String[] arguments)
           
static void stop(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettyConsoleBootstrapMainClass

public JettyConsoleBootstrapMainClass()
Method Detail

start

public static void start(String[] arguments)
                  throws Exception
Throws:
Exception

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 File getWarLocation()
Return a File pointing to the location of the Jar file this Main method is executed from.

Returns:


Copyright © 2012. All Rights Reserved.