Class PropertiesRunListener
java.lang.Object
com.cumulocity.microservice.properties.PropertiesRunListener
- All Implemented Interfaces:
org.springframework.boot.SpringApplicationRunListener
@Order(4)
public class PropertiesRunListener
extends Object
implements org.springframework.boot.SpringApplicationRunListener
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Should be above logging configuration listener. -
Constructor Summary
ConstructorDescriptionPropertiesRunListener
(org.springframework.boot.SpringApplication application, String[] args) -
Method Summary
Modifier and TypeMethodDescriptionvoid
contextLoaded
(org.springframework.context.ConfigurableApplicationContext configurableApplicationContext) void
contextPrepared
(org.springframework.context.ConfigurableApplicationContext configurableApplicationContext) void
environmentPrepared
(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext, org.springframework.core.env.ConfigurableEnvironment environment) void
environmentPrepared
(org.springframework.core.env.ConfigurableEnvironment environment) void
void
void
void
starting
(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext)
-
Field Details
-
ORDER
public static final int ORDERShould be above logging configuration listener.- See Also:
-
-
Constructor Details
-
PropertiesRunListener
-
-
Method Details
-
starting
public void starting(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext) - Specified by:
starting
in interfaceorg.springframework.boot.SpringApplicationRunListener
-
environmentPrepared
public void environmentPrepared(org.springframework.core.env.ConfigurableEnvironment environment) -
environmentPrepared
public void environmentPrepared(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext, org.springframework.core.env.ConfigurableEnvironment environment) - Specified by:
environmentPrepared
in interfaceorg.springframework.boot.SpringApplicationRunListener
-
contextPrepared
public void contextPrepared(org.springframework.context.ConfigurableApplicationContext configurableApplicationContext) - Specified by:
contextPrepared
in interfaceorg.springframework.boot.SpringApplicationRunListener
-
contextLoaded
public void contextLoaded(org.springframework.context.ConfigurableApplicationContext configurableApplicationContext) - Specified by:
contextLoaded
in interfaceorg.springframework.boot.SpringApplicationRunListener
-
started
public void started(org.springframework.context.ConfigurableApplicationContext context, Duration timeTaken) - Specified by:
started
in interfaceorg.springframework.boot.SpringApplicationRunListener
-
ready
public void ready(org.springframework.context.ConfigurableApplicationContext context, Duration timeTaken) - Specified by:
ready
in interfaceorg.springframework.boot.SpringApplicationRunListener
-
failed
public void failed(org.springframework.context.ConfigurableApplicationContext context, Throwable exception) - Specified by:
failed
in interfaceorg.springframework.boot.SpringApplicationRunListener
-