Class ServiceStarter

  • All Implemented Interfaces:
    org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

    @Component
    @DependsOn("permissionCheckerHolder")
    public class ServiceStarter
    extends java.lang.Object
    implements org.springframework.context.SmartLifecycle
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int LIFECYCLE_PHASE  
      • Fields inherited from interface org.springframework.context.SmartLifecycle

        DEFAULT_PHASE
    • Constructor Summary

      Constructors 
      Constructor Description
      ServiceStarter​(com.xebialabs.deployit.upgrade.Upgrader upgrader, com.xebialabs.deployit.upgrade.RepositoryInitializer repositoryInitializer, com.xebialabs.xlrelease.actors.cluster.XlrActorSystem xlrActorSystem, com.xebialabs.xlrelease.config.XlrConfig xlrConfig, com.xebialabs.xlrelease.service.MissingTypesChecker missingTypesChecker, com.xebialabs.xlrelease.upgrade.liquibase.BeforeLiquibaseUpgrade beforeLiquibaseUpgrade, java.util.List<? extends FeatureService> featureServices, com.xebialabs.xlrelease.service.PreArchiveService preArchiveService, com.xebialabs.xlrelease.db.XLReleaseDbInitializer xlrMigrationsDbInitializer, com.xebialabs.xlrelease.db.XLReleaseDbInitializer xlrRepositoryDbInitializer, com.xebialabs.xlrelease.db.XLReleaseDbInitializer reportingDbInitializer, EventListenerRegister eventListenerRegister, com.xebialabs.xlrelease.scheduler.JobQueueServices jobQueueServices, SecurityApiBinding securityApiBinding)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getPhase()  
      boolean isRunning()  
      void setApiServices​(java.util.List<? extends com.xebialabs.xlrelease.api.ApiService> apiServices)  
      void start()  
      void startServices()  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.context.SmartLifecycle

        isAutoStartup, stop
    • Constructor Detail

      • ServiceStarter

        @Autowired
        public ServiceStarter​(com.xebialabs.deployit.upgrade.Upgrader upgrader,
                              com.xebialabs.deployit.upgrade.RepositoryInitializer repositoryInitializer,
                              com.xebialabs.xlrelease.actors.cluster.XlrActorSystem xlrActorSystem,
                              com.xebialabs.xlrelease.config.XlrConfig xlrConfig,
                              com.xebialabs.xlrelease.service.MissingTypesChecker missingTypesChecker,
                              com.xebialabs.xlrelease.upgrade.liquibase.BeforeLiquibaseUpgrade beforeLiquibaseUpgrade,
                              java.util.List<? extends FeatureService> featureServices,
                              com.xebialabs.xlrelease.service.PreArchiveService preArchiveService,
                              @Qualifier("xlrMigrationsDbInitializer")
                              com.xebialabs.xlrelease.db.XLReleaseDbInitializer xlrMigrationsDbInitializer,
                              @Qualifier("xlrRepositoryDbInitializer")
                              com.xebialabs.xlrelease.db.XLReleaseDbInitializer xlrRepositoryDbInitializer,
                              @Qualifier("reportingDbInitializer")
                              com.xebialabs.xlrelease.db.XLReleaseDbInitializer reportingDbInitializer,
                              EventListenerRegister eventListenerRegister,
                              com.xebialabs.xlrelease.scheduler.JobQueueServices jobQueueServices,
                              SecurityApiBinding securityApiBinding)
    • Method Detail

      • setApiServices

        @Autowired
        public void setApiServices​(java.util.List<? extends com.xebialabs.xlrelease.api.ApiService> apiServices)
      • startServices

        public void startServices()
      • start

        public void start()
        Specified by:
        start in interface org.springframework.context.Lifecycle
      • stop

        public void stop()
        Specified by:
        stop in interface org.springframework.context.Lifecycle
      • isRunning

        public boolean isRunning()
        Specified by:
        isRunning in interface org.springframework.context.Lifecycle
      • getPhase

        public int getPhase()
        Specified by:
        getPhase in interface org.springframework.context.Phased
        Specified by:
        getPhase in interface org.springframework.context.SmartLifecycle