Package org.springframework.boot.env
Class SystemEnvironmentPropertySourceEnvironmentPostProcessor
- java.lang.Object
- org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor
- All Implemented Interfaces:
EnvironmentPostProcessor
,org.springframework.core.Ordered
public class SystemEnvironmentPropertySourceEnvironmentPostProcessor extends Object implements EnvironmentPostProcessor, org.springframework.core.Ordered
AnEnvironmentPostProcessor
that replaces the systemEnvironmentSystemEnvironmentPropertySource
with anSystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource
that can track theSystemEnvironmentOrigin
for every system environment property.- Since:
- 2.0.0
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource
SystemEnvironmentPropertySource
that also tracksOrigin
.
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_ORDER
The default order for the processor.
Constructor Summary
Constructors Constructor Description SystemEnvironmentPropertySourceEnvironmentPostProcessor()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
void
postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, SpringApplication application)
Post-process the givenenvironment
.void
setOrder(int order)
Field Detail
DEFAULT_ORDER
public static final int DEFAULT_ORDER
The default order for the processor.- See Also:
- Constant Field Values
Constructor Detail
SystemEnvironmentPropertySourceEnvironmentPostProcessor
public SystemEnvironmentPropertySourceEnvironmentPostProcessor()
Method Detail
postProcessEnvironment
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, SpringApplication application)
Description copied from interface:EnvironmentPostProcessor
Post-process the givenenvironment
.- Specified by:
postProcessEnvironment
in interfaceEnvironmentPostProcessor
- Parameters:
environment
- the environment to post-processapplication
- the application to which the environment belongs
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
setOrder
public void setOrder(int order)