Class BootstrapManager

  • All Implemented Interfaces:
    SystemStatusProvider

    public class BootstrapManager
    extends Object
    implements 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 Detail

      • BootstrapManager

        public BootstrapManager()
    • Method Detail

      • isSystemReady

        public boolean isSystemReady()
        Description copied from interface: SystemStatusProvider
        Indicates if the bootstrap process is completed and the system can be used.
        Specified by:
        isSystemReady in interface SystemStatusProvider
        Returns:
        true if ready
      • onContextRefresh

        @Order(2)
        @EventListener(value=org.springframework.context.event.ContextRefreshedEvent.class,
                       condition="event.applicationContext.parent == null")
        public Object onContextRefresh()