org.elkoserver.foundation.boot
Class Boot
java.lang.Object
java.lang.Thread
org.elkoserver.foundation.boot.Boot
- All Implemented Interfaces:
- Runnable
public class Boot
- extends Thread
This is the universal startup class for applications using Elko. It
performs the necessary initializations that all applications require, then
launches the application itself by instantiating an instance of the
application boot class and calling its boot()
method.
The name of the application boot class should be the second argument on the
Java command line, according to the following usage:
java org.elkoserver.foundation.boot.Boot bootclass args...
The boot class must implement Bootable.
In addition to regular application command line parameters, property
settings may also be given on the command line. They are interpreted
according to the format in BootProperties.scanArgs(java.lang.String[]). Arguments that
set property values are removed from the arguments array before it is
presented to the application.
|
Method Summary |
static void |
main(String[] args)
Create a Boot object and start it running. |
void |
run()
The run method mandated by the Thread class. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
main
public static void main(String[] args)
- Create a Boot object and start it running.
- Parameters:
args - Command line arguments per the Java language spec.
run
public void run()
- The run method mandated by the
Thread class. This method is
required to be public by Java's scoping rules, but you should not call
it yourself.
- Specified by:
run in interface Runnable- Overrides:
run in class Thread