Class InitService

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware

    public class InitService
    extends ServiceConfig
    implements org.springframework.beans.factory.DisposableBean
    Manage application initialization
    • Constructor Detail

      • InitService

        public InitService​(LauncherService launcherService)
        Autowired constructor
        Parameters:
        launcherService - Launcher service
    • Method Detail

      • onApplicationStart

        @EventListener
        public void onApplicationStart​(org.springframework.context.event.ContextRefreshedEvent event)
        Launch services when application have been started (before spring context)
        Parameters:
        event - Context refresh event
      • destroy

        public void destroy()
                     throws Exception
        Launch services when application have been started (before spring context)
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
        Throws:
        Exception
      • onClientStart

        public void onClientStart()
        Launch a client initialization
      • launchPhaseServices

        public void launchPhaseServices​(LaunchPhaseType phase)
        Launch initial services
        Parameters:
        phase - Service phase