Class SpringApplicationJsonEnvironmentPostProcessor
java.lang.Object
org.springframework.boot.env.SpringApplicationJsonEnvironmentPostProcessor
- All Implemented Interfaces:
- EnvironmentPostProcessor,- org.springframework.core.Ordered
public class SpringApplicationJsonEnvironmentPostProcessor
extends Object
implements EnvironmentPostProcessor, org.springframework.core.Ordered
An 
EnvironmentPostProcessor that parses JSON from
 spring.application.json or equivalently SPRING_APPLICATION_JSON and
 adds it as a map property source to the Environment. The new properties are
 added with higher priority than the system properties.- Since:
- 1.3.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intThe default order for the processor.static final StringName of theSPRING_APPLICATION_JSONenvironment variable.static final StringName of thespring.application.jsonproperty.Fields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintgetOrder()voidpostProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, SpringApplication application) Post-process the givenenvironment.voidsetOrder(int order) 
- 
Field Details- 
SPRING_APPLICATION_JSON_PROPERTYName of thespring.application.jsonproperty.- See Also:
 
- 
SPRING_APPLICATION_JSON_ENVIRONMENT_VARIABLEName of theSPRING_APPLICATION_JSONenvironment variable.- See Also:
 
- 
DEFAULT_ORDERpublic static final int DEFAULT_ORDERThe default order for the processor.- See Also:
 
 
- 
- 
Constructor Details- 
SpringApplicationJsonEnvironmentPostProcessorpublic SpringApplicationJsonEnvironmentPostProcessor()
 
- 
- 
Method Details- 
getOrderpublic int getOrder()- Specified by:
- getOrderin interface- org.springframework.core.Ordered
 
- 
setOrderpublic void setOrder(int order) 
- 
postProcessEnvironmentpublic void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, SpringApplication application) Description copied from interface:EnvironmentPostProcessorPost-process the givenenvironment.- Specified by:
- postProcessEnvironmentin interface- EnvironmentPostProcessor
- Parameters:
- environment- the environment to post-process
- application- the application to which the environment belongs
 
 
-