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
An
EnvironmentPostProcessor
that replaces the systemEnvironment
SystemEnvironmentPropertySource
with an
SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource
that can track the
SystemEnvironmentOrigin
for every system environment property.- Since:
- 2.0.0
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
SystemEnvironmentPropertySource
that also tracksOrigin
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The default order for the processor.Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
void
postProcessEnvironment
(org.springframework.core.env.ConfigurableEnvironment environment, SpringApplication application) Post-process the givenenvironment
.void
setOrder
(int order)
-
Field Details
-
DEFAULT_ORDER
public static final int DEFAULT_ORDERThe default order for the processor.- See Also:
-
-
Constructor Details
-
SystemEnvironmentPropertySourceEnvironmentPostProcessor
public SystemEnvironmentPropertySourceEnvironmentPostProcessor()
-
-
Method Details
-
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)
-