|
JPF 0.10 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.java.plugin.boot.Boot
Main class to get JPF based application running in different modes.
Application mode may be specified as jpf.boot.mode
System
property (via -Djpf.boot.mode=
command line argument). Supported
values are:
jpf.boot.mode
System property can be found.
Application configuration is expected to be in boot.properties
file located in the current directory. Note that properties will be loaded
using specially extended
version of Properties
class, which supports parameters
substitution. If there is no applicationRoot
property available
in the given configuration, the current folder will be published as default
value.
Standard configuration parameters are (all are optional when application is running in "shell" mode):
ApplicationInitializer
. Default is
DefaultApplicationInitializer
.BootErrorHandler
. Default is
BootErrorHandlerConsole
for "service" style
applications and BootErrorHandlerGui
for
"interactive" applications.
Field Summary | |
static java.lang.String |
BOOT_ERROR_FILE_NAME
Name of the file, where to put boot error details. |
static java.lang.String |
BOOT_MODE_COMMAND_NAME
Boot mode System property name. |
static java.lang.String |
BOOT_MODE_RESTART
"restart" mode boot command value. |
static java.lang.String |
BOOT_MODE_SHELL
"shell" mode boot command value. |
static java.lang.String |
BOOT_MODE_START
"start" mode boot command value. |
static java.lang.String |
BOOT_MODE_STOP
"stop" mode boot command value. |
Method Summary | |
static void |
main(java.lang.String[] args)
Call this method to start/stop application. |
static void |
stopApplication(Application application)
Stops the application, shuts down plug-in manager and disposes log service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String BOOT_ERROR_FILE_NAME
public static final java.lang.String BOOT_MODE_COMMAND_NAME
public static final java.lang.String BOOT_MODE_SHELL
public static final java.lang.String BOOT_MODE_START
public static final java.lang.String BOOT_MODE_STOP
public static final java.lang.String BOOT_MODE_RESTART
Method Detail |
public static void main(java.lang.String[] args)
args
- command line arguments, not interpreted by this method but
passed to
ApplicationPlugin.initApplication(ExtendedProperties, String[])
methodpublic static void stopApplication(Application application) throws java.lang.Exception
application
- application instance being stopped
java.lang.Exception
- if any error has occurred during application stopping
|
JPF 0.10 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |