Class SystemEnvironmentPropertySourceEnvironmentPostProcessor
java.lang.Object
org.springframework.boot.support.SystemEnvironmentPropertySourceEnvironmentPostProcessor
- All Implemented Interfaces:
EnvironmentPostProcessor, Ordered
public class SystemEnvironmentPropertySourceEnvironmentPostProcessor
extends Object
implements EnvironmentPostProcessor, Ordered
An
EnvironmentPostProcessor that replaces the systemEnvironment
SystemEnvironmentPropertySource with an
SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource that can track the
SystemEnvironmentOrigin for every system environment property.- Since:
- 4.0.0
- Author:
- Madhura Bhave
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classSystemEnvironmentPropertySourcethat also tracksOrigin. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default order for the processor.Fields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()voidpostProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) Post-process the givenenvironment.voidsetOrder(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(ConfigurableEnvironment environment, SpringApplication application) Description copied from interface:EnvironmentPostProcessorPost-process the givenenvironment.- Specified by:
postProcessEnvironmentin interfaceEnvironmentPostProcessor- Parameters:
environment- the environment to post-processapplication- the application to which the environment belongs
-
getOrder
-
setOrder
public void setOrder(int order)
-