Interface BootstrapManager
- All Known Implementing Classes:
BootstrapManagerImpl
public interface BootstrapManager
This is interface is needed so the BootstrapManager implementations
can handle events asynchronously
-
Method Summary
Modifier and TypeMethodDescriptionvoidHandles the end of the bootstrap process.Handles theCleanupRepositoriesEventand chains the next event to be published after the repositories are cleaned up.Handles theContextRefreshedEvent.voidHandles theStartSitesBootstrapEvent.voidHandles theStartSitesUpgradeEvent.Handles theStartSystemUpgradeEventand chains the next event to be published after the system upgrade is done.
-
Method Details
-
onContextRefresh
Object onContextRefresh()Handles theContextRefreshedEvent. This is needed to trigger the bootstrap process after the context is fully initialized.- Returns:
- the next event to be published
-
onSitesBootstrapEvent
void onSitesBootstrapEvent()Handles theStartSitesBootstrapEvent. This is meant to trigger the sites bootstrap asynchronously. -
onCleanUpRepositories
Object onCleanUpRepositories()Handles theCleanupRepositoriesEventand chains the next event to be published after the repositories are cleaned up.- Returns:
- the next event to be published
-
onStartSitesUpgradeEvent
void onStartSitesUpgradeEvent()Handles theStartSitesUpgradeEvent. This is meant to trigger the sites upgrade -
onStartSystemUpgrade
Object onStartSystemUpgrade()Handles theStartSystemUpgradeEventand chains the next event to be published after the system upgrade is done.- Returns:
- the next event to be published
-
onBootstrapFinished
void onBootstrapFinished()Handles the end of the bootstrap process. This is meant to trigger any finalization needed after the bootstrap process is finished.
-