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 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classSpringLifecycleDescriptor.StartupBrings the startup application listener into this context and fillsSpringInstances.
-
Constructor Summary
Constructors Constructor Description SpringLifecycleDescriptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.boot.CommandLineRunnercommandLineRunner(org.springframework.context.ApplicationContext ctx)Basic execution of the service manager.java.lang.ThreadgetShutdownHook()static voidmain(java.lang.String[] args)Just for testing.intpriority()voidshutdown()voidstartup(java.lang.String[] args)
-
-
-
Method Detail
-
startup
public void startup(java.lang.String[] args)
- Specified by:
startupin interfacede.iip_ecosphere.platform.support.LifecycleDescriptor
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfacede.iip_ecosphere.platform.support.LifecycleDescriptor
-
getShutdownHook
public java.lang.Thread getShutdownHook()
- Specified by:
getShutdownHookin interfacede.iip_ecosphere.platform.support.LifecycleDescriptor
-
priority
public int priority()
- Specified by:
priorityin interfacede.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
-
-