public interface Runtime
Modifier and Type | Method and Description |
---|---|
void |
addCustomInitializer(CustomInitializer customInitializer)
Add an initializer to do custom initializations during startup.
|
void |
addInitializationCompleteListener(InitializationCompleteListener listener)
Add a listener that is informed after the application was completely initialized.
|
void |
addInitializationCondition(String conditionId)
Add a condition which needs to be fulfilled before the application is considered as
completely initialized.
|
void |
fulfillInitializationCondition(String conditionId)
Mark a condition that was previously added with
addInitializationCondition(String)
as fulfilled. |
ApplicationInformation |
getApplicationInformation() |
ConfigurationManager |
getConfigurationManager() |
InitializationStatus |
getInitializationStatus() |
CommunoteInstaller |
getInstaller() |
boolean |
isCoreInitialized() |
boolean |
isInitialized() |
void |
start()
Starts the bootstrapping.
|
void |
stop()
Stop the runtime and free any resources held.
|
void addCustomInitializer(CustomInitializer customInitializer)
customInitializer
- the additional initializervoid addInitializationCompleteListener(InitializationCompleteListener listener)
listener
- the listener to addvoid addInitializationCondition(String conditionId)
conditionId
- the ID of the conditionvoid fulfillInitializationCondition(String conditionId)
addInitializationCondition(String)
as fulfilled. If this was the last unfulfilled init condition and the core is already
initialized the application will be considered as completely initialized and the
initialization complete listeners will be called. If the provided condition was not added the
call is ignored.conditionId
- the ID of the condition to fulfill.ApplicationInformation getApplicationInformation()
ConfigurationManager getConfigurationManager()
InitializationStatus getInitializationStatus()
CommunoteInstaller getInstaller()
boolean isCoreInitialized()
boolean isInitialized()
isCoreInitialized()
returns true and all conditions are fulfilled.void start()
BootstrapException
will be
thrown.void stop()
Copyright © 2019 Communote team. All rights reserved.