Class ServiceStarter

java.lang.Object
com.xebialabs.xlrelease.service.ServiceStarter
All Implemented Interfaces:
org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     

    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.service.XlrServiceManager serviceManager, com.xebialabs.xlrelease.config.XlrConfig xlrConfig, com.xebialabs.xlrelease.service.MissingTypesChecker missingTypesChecker, com.xebialabs.xlrelease.upgrade.liquibase.BeforeLiquibaseUpgrade beforeLiquibaseUpgrade, com.xebialabs.xlrelease.db.XLReleaseDbInitializer xlrMigrationsDbInitializer, com.xebialabs.xlrelease.db.XLReleaseDbInitializer xlrRepositoryDbInitializer, com.xebialabs.xlrelease.db.XLReleaseDbInitializer reportingDbInitializer, EventListenerRegister eventListenerRegister, SecurityApiBinding securityApiBinding, com.xebialabs.xlrelease.service.DatacenterService datacenterService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    boolean
     
    void
    setApiServices(List<? extends com.xebialabs.xlrelease.api.ApiService> apiServices)
     
    void
     
    void
     
    void
     

    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
  • Field Details

  • Constructor Details

    • ServiceStarter

      @Autowired public ServiceStarter(com.xebialabs.deployit.upgrade.Upgrader upgrader, com.xebialabs.deployit.upgrade.RepositoryInitializer repositoryInitializer, com.xebialabs.xlrelease.service.XlrServiceManager serviceManager, com.xebialabs.xlrelease.config.XlrConfig xlrConfig, com.xebialabs.xlrelease.service.MissingTypesChecker missingTypesChecker, com.xebialabs.xlrelease.upgrade.liquibase.BeforeLiquibaseUpgrade beforeLiquibaseUpgrade, @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, SecurityApiBinding securityApiBinding, com.xebialabs.xlrelease.service.DatacenterService datacenterService)
  • Method Details

    • setApiServices

      @Autowired public void setApiServices(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