Class SpringLifecycleDescriptor

  • All Implemented Interfaces:
    de.iip_ecosphere.platform.support.LifecycleDescriptor

    @SpringBootApplication(scanBasePackageClasses=SpringLifecycleDescriptor.class)
    public class SpringLifecycleDescriptor
    extends java.lang.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
    • Field Summary

      • Fields inherited from interface de.iip_ecosphere.platform.support.LifecycleDescriptor

        AAS_PRIORITY, CMD_LINE_PRIORITY, INIT_PRIORITY
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.boot.CommandLineRunner commandLineRunner​(org.springframework.context.ApplicationContext ctx)
      Basic execution of the service manager.
      java.lang.Thread getShutdownHook()  
      static void main​(java.lang.String[] args)
      Just for testing.
      int priority()  
      void shutdown()  
      void startup​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpringLifecycleDescriptor

        public SpringLifecycleDescriptor()
    • Method Detail

      • startup

        public void startup​(java.lang.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 java.lang.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​(java.lang.String[] args)
        Just for testing.
        Parameters:
        args - command line arguments, may be implementation specific