public interface ApplicationInitializer
| Modifier and Type | Method and Description |
|---|---|
void |
configure(ExtendedProperties config)
Configures this initializer instance, this method will be called once
before any other method call in this class.
|
Application |
initApplication(BootErrorHandler errorHandler,
String[] args)
This method should configure and initialize an application instance to be
started.
|
void configure(ExtendedProperties config) throws Exception
config - application configuration data from
boot.properties file and System
properties as defaultsException - if any error has occurred during initializer
configuringApplication initApplication(BootErrorHandler errorHandler, String[] args) throws Exception
errorHandler - callback interface to report errors to the user,
it is recommended to use this handler only for
"non-fatal" errors and ask user via
BootErrorHandler.handleError(String, Exception)
or BootErrorHandler.handleError(String, org.java.plugin.registry.IntegrityCheckReport)
if he wants to abort application boot processargs - command line arguments as they passed to program
main methodnull if
initializing failedException - if any error has occurred during application
initializingCopyright © 2016. All rights reserved.