org.jfree.base
Class AbstractBoot
java.lang.Object
org.jfree.base.AbstractBoot
- org.jfree.base.modules.SubSystem
extends java.lang.Object
implements org.jfree.base.modules.SubSystem
The common base for all Boot classes.
This initializes the subsystem and all dependent subsystems.
Implementors of this class have to provide a public static
getInstance() method which returns a singleton instance of the
booter implementation.
Further creation of Boot object should be prevented using
protected or private constructors in that class, or proper
initialzation cannot be guaranteed.
createDefaultHierarchicalConfiguration
protected Configuration createDefaultHierarchicalConfiguration(String staticConfig,
String userConfig,
boolean addSysProps)
Creates a default configuration setup, which loads its settings from
the static configuration (defaults provided by the developers of the
library) and the user configuration (settings provided by the deployer).
The deployer's settings override the developer's settings.
If the parameter addSysProps
is set to true, the system
properties will be added as third configuration layer. The system
properties configuration allows to override all other settings.
staticConfig
- the resource name of the developers configurationuserConfig
- the resource name of the deployers configurationaddSysProps
- a flag defining whether to include the system
properties into the configuration.
- the configured Configuration instance.
getPackageManager
public org.jfree.base.modules.PackageManager getPackageManager()
Returns the packageManager instance of the package manager.
- getPackageManager in interface org.jfree.base.modules.SubSystem
isBootDone
public final boolean isBootDone()
Checks, whether the booting is complete.
- true, if the booting is complete, false otherwise.
isBootInProgress
public final boolean isBootInProgress()
Checks, whether the booting is in progress.
- true, if the booting is in progress, false otherwise.
loadBooter
protected AbstractBoot loadBooter(String classname)
Loads the specified booter implementation.
classname
- the class name.
performBoot
protected abstract void performBoot()
Performs the boot.
start
public final void start()
Starts the boot process.