Class DefaultEnvironmentPostProcessor
java.lang.Object
org.springframework.cloud.dataflow.server.config.DefaultEnvironmentPostProcessor
- All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor
,Ordered
public class DefaultEnvironmentPostProcessor
extends Object
implements org.springframework.boot.env.EnvironmentPostProcessor, Ordered
Contributes the values from
META-INF/dataflow-server-defaults.yml
and
dataflow-server.yml
if it exists, before any of Spring Boot's normal
configuration contributions apply. This has the effect of supplying overridable
defaults to the various Spring Cloud Data Flow Deployer SPI implementations that in
turn override the defaults provided by Spring Boot.- Author:
- Josh Long, Janne Valkealahti
-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
void
postProcessEnvironment
(ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
-
Field Details
-
ORDER
public static final int ORDERThe order the processor is invoked.Must execute after the
ConfigDataEnvironmentPostProcessor
because they both use theaddLast
API to add their property source and the default EPP should have lower precedence.Must execute before the
ConfigDataMissingEnvironmentPostProcessor
because the legacy config data flag is set in the default dataflow properties and without this flag the server will not start. The config data missing has an order ofConfigDataEnvironmentPostProcessor.ORDER + 1000
so we simply anchor below that.- See Also:
-
-
Constructor Details
-
DefaultEnvironmentPostProcessor
public DefaultEnvironmentPostProcessor()
-
-
Method Details
-
postProcessEnvironment
public void postProcessEnvironment(ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) - Specified by:
postProcessEnvironment
in interfaceorg.springframework.boot.env.EnvironmentPostProcessor
-
getOrder
public int getOrder()
-