Class BootstrapManager
java.lang.Object
org.craftercms.studio.impl.v2.utils.spring.context.BootstrapManager
- All Implemented Interfaces:
SystemStatusProvider
Central point to control the event-based bootstrap process.
Note: All methods in this class should use the Order annotation with the default value to ensure the
events are triggered in the right order
- Since:
- 4.0
- Author:
- joseross
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates if the bootstrap process is completed and the system can be used.void
-
Constructor Details
-
BootstrapManager
public BootstrapManager()
-
-
Method Details
-
isSystemReady
public boolean isSystemReady()Description copied from interface:SystemStatusProviderIndicates if the bootstrap process is completed and the system can be used.- Specified by:
isSystemReadyin interfaceSystemStatusProvider- Returns:
- true if ready
-
onContextRefresh
@Order(2) @EventListener(value=org.springframework.context.event.ContextRefreshedEvent.class, condition="event.applicationContext.parent == null") public Object onContextRefresh() -
onCleanupTemporaryFiles
-
onCleanUpRepositories
-
onStartClusterSetup
-
onStartUpgrade
-
onBootstrapFinished
-