public class XdConfigLoggingInitializer
extends java.lang.Object
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.context.EnvironmentAware
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.core.env.ConfigurableEnvironment |
environment |
| Constructor and Description |
|---|
XdConfigLoggingInitializer(boolean isContainer) |
| Modifier and Type | Method and Description |
|---|---|
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
Log config info upon admin or container server context refresh.
|
void |
setContainerAttributes(ContainerAttributes containerAttributes)
If not set, this property will default to
null. |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
public XdConfigLoggingInitializer(boolean isContainer)
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAwarepublic void setContainerAttributes(ContainerAttributes containerAttributes)
null.containerAttributes - Must not be nullpublic void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>