public class Boot extends Thread
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.
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Create a Boot object and start it running.
|
void |
run()
The run method mandated by the
Thread class. |
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
public static void main(String[] args)
args
- Command line arguments per the Java language spec.public void run()
Thread
class. This method is
required to be public by Java's scoping rules, but you should not call
it yourself.
Java's rules don't allow you to declare run() to throw any
exceptions, so this just wraps a call to the private method
startApplication() in a try/catch block. The guts of startup are in
another method for improved legibility.Copyright © 2017. All rights reserved.