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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classBrings the startup application listener into this context and fillsSpringInstances. -
Field Summary
Fields inherited from interface de.iip_ecosphere.platform.support.LifecycleDescriptor
AAS_PRIORITY, CMD_LINE_PRIORITY, INIT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.CommandLineRunnercommandLineRunner(org.springframework.context.ApplicationContext ctx) Basic execution of the service manager.static voidJust for testing.intpriority()voidshutdown()void
-
Constructor Details
-
SpringLifecycleDescriptor
public SpringLifecycleDescriptor()
-
-
Method Details
-
startup
- Specified by:
startupin interfacede.iip_ecosphere.platform.support.LifecycleDescriptor
-
shutdown
public void shutdown()- Specified by:
shutdownin interfacede.iip_ecosphere.platform.support.LifecycleDescriptor
-
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
Just for testing.- Parameters:
args- command line arguments, may be implementation specific
-