Package org.java.plugin.boot
This package contains helper classes to start/stop JPF based applications.
The main class here is Boot that contains standard entry point for Java applications - method main(String[]). The implemented boot sequence is following:
- Load configuration from
boot.properties
file from the current directory. Default values are given from system properties. - Instanciate ApplicationInitializer and BootErrorHandler using given configuration parameters.
- Call ApplicationInitializer.initApplication(org.java.plugin.boot.BootErrorHandler, String[]) method to get configured instance of Application interface.
- Call Application.startApplication() method to get application running.
For details and supported configuration parameters see documentation for corresponding classes.
Note that described scenario is quite common and can be customized and changed in any point providing other implementations of key classes.
For a list of available configuration parameters see documentation for the Boot (applicable to any scenario) and DefaultApplicationInitializer (applicable to scenario when this class being used) classes.
-
Interface Summary Interface Description Application This is "marker" interface to abstract an application that may be started (and will stop itself upon user activity).ApplicationInitializer Interface to plug custom code into JPF based application boot procedure.BootErrorHandler Callback interface to handle boot-time application errors.PluginsCollector Interface to encapsulate logic for gathering information about available plug-ins locations.ServiceApplication This is "marker" interface to represent a service style application that may be started and stopped.SplashHandler Interface to control application splash screen. -
Class Summary Class Description ApplicationPlugin This class is for "application" plug-ins - a JPF based program entry point.Boot Main class to get JPF based application running in different modes.BootErrorHandlerConsole Console out based error handler implementation, most suites good for non-interactive service-style applications.BootErrorHandlerGui Standard boot error handler for GUI applications.DefaultApplicationInitializer Default implementation of the application initializer interface.DefaultPluginsCollector Default implementation of plug-ins collector interface.ErrorDialog Helper class to display detailed message about application error.