Class SpringLifecycleDescriptor

java.lang.Object
de.iip_ecosphere.platform.services.spring.SpringLifecycleDescriptor
All Implemented Interfaces:
de.iip_ecosphere.platform.support.LifecycleDescriptor

@SpringBootApplication(scanBasePackageClasses=SpringLifecycleDescriptor.class) public class SpringLifecycleDescriptor extends Object implements de.iip_ecosphere.platform.support.LifecycleDescriptor
The lifecycle descriptor for the spring cloud service manager. Requires service management implementation and AAS implementation to be hooked in properly via JSL.
Author:
Holger Eichelberger, SSE
  • Constructor Details

    • SpringLifecycleDescriptor

      public SpringLifecycleDescriptor()
  • Method Details

    • startup

      public void startup(String[] args)
      Specified by:
      startup in interface de.iip_ecosphere.platform.support.LifecycleDescriptor
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface de.iip_ecosphere.platform.support.LifecycleDescriptor
    • getShutdownHook

      public Thread getShutdownHook()
      Specified by:
      getShutdownHook in interface de.iip_ecosphere.platform.support.LifecycleDescriptor
    • priority

      public int priority()
      Specified by:
      priority in interface de.iip_ecosphere.platform.support.LifecycleDescriptor
    • commandLineRunner

      @Bean public org.springframework.boot.CommandLineRunner commandLineRunner(org.springframework.context.ApplicationContext ctx)
      Basic execution of the service manager.
      Parameters:
      ctx - the application context
      Returns:
      the runner instance
    • main

      public static void main(String[] args)
      Just for testing.
      Parameters:
      args - command line arguments, may be implementation specific