public abstract class AbstractBoot extends Object implements SubSystem
Modifier | Constructor and Description |
---|---|
protected |
AbstractBoot()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected HierarchicalConfiguration |
createDefaultHierarchicalConfiguration(String staticConfig,
String userConfig,
boolean addSysProps,
Class source)
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).
|
Exception |
getBootFailureReason()
Returns the failure reason for the boot process.
|
String |
getConfigurationDomain() |
ExtendedConfiguration |
getExtendedConfig()
Returns the global configuration as extended configuration.
|
Configuration |
getGlobalConfig()
Returns the global configuration.
|
ObjectFactory |
getObjectFactory() |
PackageManager |
getPackageManager()
Returns the packageManager instance of the package manager.
|
protected abstract ProjectInformation |
getProjectInfo()
Returns the project info.
|
boolean |
isBootDone()
Checks, whether the booting is complete.
|
boolean |
isBootFailed()
Checks whether the booting failed.
|
boolean |
isBootInProgress()
Checks, whether the booting is in progress.
|
protected AbstractBoot |
loadBooter(String classname)
Loads the specified booter implementation.
|
static AbstractBoot |
loadBooter(String classname,
Class source)
Loads the specified booter-class.
|
protected abstract Configuration |
loadConfiguration()
Loads the configuration.
|
protected abstract void |
performBoot()
Performs the boot.
|
void |
start()
Starts the boot process.
|
public PackageManager getPackageManager()
getPackageManager
in interface SubSystem
public Configuration getGlobalConfig()
getGlobalConfig
in interface SubSystem
public final boolean isBootInProgress()
public boolean isBootDone()
public String getConfigurationDomain()
protected abstract Configuration loadConfiguration()
public final void start()
bootFailed
property to true. If booting is finished, the
bootDone
property is set to true.public boolean isBootFailed()
bootFailureReason
.public Exception getBootFailureReason()
protected abstract void performBoot()
protected abstract ProjectInformation getProjectInfo()
protected AbstractBoot loadBooter(String classname)
classname
- the class name.public static AbstractBoot loadBooter(String classname, Class source)
classname
- the classname of the booter class.source
- the source-class from where to get the classloader.protected HierarchicalConfiguration createDefaultHierarchicalConfiguration(String staticConfig, String userConfig, boolean addSysProps, Class source)
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.source
- the classloader source to load resources from.public ExtendedConfiguration getExtendedConfig()
getExtendedConfig
in interface SubSystem
public ObjectFactory getObjectFactory()
Copyright © 2017 Hitachi Vantara. All rights reserved.