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 Details

    • ORDER

      public static final int ORDER
      The order the processor is invoked.

      Must execute after the ConfigDataEnvironmentPostProcessor because they both use the addLast 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 of ConfigDataEnvironmentPostProcessor.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 interface org.springframework.boot.env.EnvironmentPostProcessor
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface Ordered