org.springframework.boot.env

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
    Author:
    Dave Syer, Phillip Webb
    • Field Detail

      • DEFAULT_ORDER

        public static final int DEFAULT_ORDER
        The default order for the processor.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SpringApplicationJsonEnvironmentPostProcessor

        public SpringApplicationJsonEnvironmentPostProcessor()
    • Method Detail

      • getOrder

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

        public void setOrder(int order)
      • 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

Copyright © 2019 Pivotal Software, Inc.. All rights reserved.