public class SpringApplicationJsonEnvironmentPostProcessor extends Object implements EnvironmentPostProcessor, org.springframework.core.Ordered
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.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ORDER
The default order for the processor.
|
static String |
SPRING_APPLICATION_JSON_ENVIRONMENT_VARIABLE
Name of the
SPRING_APPLICATION_JSON environment variable. |
static String |
SPRING_APPLICATION_JSON_PROPERTY
Name of the
spring.application.json property. |
Constructor and Description |
---|
SpringApplicationJsonEnvironmentPostProcessor() |
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 String SPRING_APPLICATION_JSON_PROPERTY
spring.application.json
property.public static final String SPRING_APPLICATION_JSON_ENVIRONMENT_VARIABLE
SPRING_APPLICATION_JSON
environment variable.public static final int DEFAULT_ORDER
public SpringApplicationJsonEnvironmentPostProcessor()
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setOrder(int order)
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 belongsCopyright © 2019 Pivotal Software, Inc.. All rights reserved.