public class DefaultRuntimeBuilder extends Object implements RuntimeBuilder
Modifier and Type | Method and Description |
---|---|
void |
addApplicationContextConfigLocation(String configLocation)
Add the location of an XML file which contains Spring bean definitions that should be
included when creating the ApplicationContext.
|
void |
addCustomInitializer(CustomInitializer customInitializer)
Add a custom initializer which should be passed to the runtime after build was called
|
Runtime |
build() |
static DefaultRuntimeBuilder |
getInstance() |
void |
setApplicationDirectory(String applicationDirectory)
Set the directory where the application was extracted to
|
void |
setApplicationInformationProvider(ApplicationInformationProvider provider) |
void |
setApplicationPreparedCallback(ApplicationPreparedCallback applicationPreparedCallback)
Set the callback to invoke after basic preparations like reading configurations, setting up
logging and building the Spring ApplicationContext are completed.
|
void |
setInstallationPreparedCallback(InstallationPreparedCallback installationPreparedCallback)
Set the callback to invoke during startup if Communote is not yet installed.
|
public static DefaultRuntimeBuilder getInstance()
public void addApplicationContextConfigLocation(String configLocation)
configLocation
- an absolute location of a configuration resource with bean definitions to load.
The string should start with classpath: or file: for loading classpath or file
resources.public void addCustomInitializer(CustomInitializer customInitializer)
customInitializer
- the initializerpublic Runtime build()
build
in interface RuntimeBuilder
public void setApplicationDirectory(String applicationDirectory)
applicationDirectory
- the absolute file system path pointing to the directory where the web application
was extracted topublic void setApplicationInformationProvider(ApplicationInformationProvider provider)
public void setApplicationPreparedCallback(ApplicationPreparedCallback applicationPreparedCallback)
applicationPreparedCallback
- the callback to invokepublic void setInstallationPreparedCallback(InstallationPreparedCallback installationPreparedCallback)
installationPreparedCallback
- the callback to invokeCopyright © 2019 Communote team. All rights reserved.