public class SystemEnvironmentPropertySourceEnvironmentPostProcessor extends java.lang.Object implements EnvironmentPostProcessor, org.springframework.core.Ordered
EnvironmentPostProcessor
that replaces the systemEnvironment
SystemEnvironmentPropertySource
with an
SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource
that can track the
SystemEnvironmentOrigin
for every system environment property.Modifier and Type | Class and Description |
---|---|
protected static class |
SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource
SystemEnvironmentPropertySource that also tracks Origin . |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ORDER
The default order for the processor.
|
Constructor and Description |
---|
SystemEnvironmentPropertySourceEnvironmentPostProcessor() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
void |
postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment,
SpringApplication application)
Post-process the given
environment . |
void |
setOrder(int order) |
public static final int DEFAULT_ORDER
public SystemEnvironmentPropertySourceEnvironmentPostProcessor()
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, SpringApplication application)
EnvironmentPostProcessor
environment
.postProcessEnvironment
in interface EnvironmentPostProcessor
environment
- the environment to post-processapplication
- the application to which the environment belongspublic int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setOrder(int order)