|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.base.AbstractBoot
public abstract class AbstractBoot
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.
Constructor Summary | |
---|---|
protected |
AbstractBoot()
Default constructor. |
Method Summary | |
---|---|
protected Configuration |
createDefaultHierarchicalConfiguration(java.lang.String staticConfig,
java.lang.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). |
protected Configuration |
createDefaultHierarchicalConfiguration(java.lang.String staticConfig,
java.lang.String userConfig,
boolean addSysProps,
java.lang.Class source)
Creates a default hierarchical configuration. |
ExtendedConfiguration |
getExtendedConfig()
Returns the global configuration as extended configuration. |
Configuration |
getGlobalConfig()
Returns the global configuration. |
org.jfree.base.modules.PackageManager |
getPackageManager()
Returns the packageManager instance of the package manager. |
protected abstract BootableProjectInfo |
getProjectInfo()
Returns the project info. |
boolean |
isBootDone()
Checks, whether the booting is complete. |
boolean |
isBootInProgress()
Checks, whether the booting is in progress. |
protected AbstractBoot |
loadBooter(java.lang.String classname)
Loads the specified booter implementation. |
protected abstract Configuration |
loadConfiguration()
Loads the configuration. |
protected abstract void |
performBoot()
Performs the boot. |
void |
start()
Starts the boot process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractBoot()
Method Detail |
---|
public org.jfree.base.modules.PackageManager getPackageManager()
getPackageManager
in interface org.jfree.base.modules.SubSystem
public Configuration getGlobalConfig()
getGlobalConfig
in interface org.jfree.base.modules.SubSystem
public final boolean isBootInProgress()
public final boolean isBootDone()
protected abstract Configuration loadConfiguration()
public final void start()
protected abstract void performBoot()
protected abstract BootableProjectInfo getProjectInfo()
protected AbstractBoot loadBooter(java.lang.String classname)
classname
- the class name.
protected Configuration createDefaultHierarchicalConfiguration(java.lang.String staticConfig, java.lang.String userConfig, boolean addSysProps)
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.
protected Configuration createDefaultHierarchicalConfiguration(java.lang.String staticConfig, java.lang.String userConfig, boolean addSysProps, java.lang.Class source)
staticConfig
- the static configuration.userConfig
- the user configuration.addSysProps
- additional system properties.source
- the source.
public ExtendedConfiguration getExtendedConfig()
getExtendedConfig
in interface org.jfree.base.modules.SubSystem
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |