Class SystemEnvironmentPropertySourceEnvironmentPostProcessor

java.lang.Object
org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor
All Implemented Interfaces:
EnvironmentPostProcessor, org.springframework.core.Ordered

public class SystemEnvironmentPropertySourceEnvironmentPostProcessor extends Object implements EnvironmentPostProcessor, org.springframework.core.Ordered
An EnvironmentPostProcessor that replaces the systemEnvironment SystemEnvironmentPropertySource with an SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource that can track the SystemEnvironmentOrigin for every system environment property.
Since:
2.0.0
  • Field Details

    • DEFAULT_ORDER

      public static final int DEFAULT_ORDER
      The default order for the processor.
      See Also:
  • Constructor Details

    • SystemEnvironmentPropertySourceEnvironmentPostProcessor

      public SystemEnvironmentPropertySourceEnvironmentPostProcessor()
  • Method Details

    • postProcessEnvironment

      public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, SpringApplication application)
      Description copied from interface: EnvironmentPostProcessor
      Post-process the given environment.
      Specified by:
      postProcessEnvironment in interface EnvironmentPostProcessor
      Parameters:
      environment - the environment to post-process
      application - the application to which the environment belongs
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • setOrder

      public void setOrder(int order)