org.springframework.boot.context.config

Class ConfigDataEnvironmentPostProcessor

  • java.lang.Object
    • org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor
    • Field Detail

      • ORDER

        public static final int ORDER
        The default order for the processor.
        See Also:
        Constant Field Values
      • ON_LOCATION_NOT_FOUND_PROPERTY

        public static final java.lang.String ON_LOCATION_NOT_FOUND_PROPERTY
        Property used to determine what action to take when a ConfigDataLocationNotFoundException is thrown.
        See Also:
        ConfigDataNotFoundAction, Constant Field Values
    • Method Detail

      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
      • 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
      • applyTo

        public static void applyTo(org.springframework.core.env.ConfigurableEnvironment environment)
        Apply ConfigData post-processing to an existing Environment. This method can be useful when working with an Environment that has been created directly and not necessarily as part of a SpringApplication.
        Parameters:
        environment - the environment to apply ConfigData to
      • applyTo

        public static void applyTo(org.springframework.core.env.ConfigurableEnvironment environment,
                                   org.springframework.core.io.ResourceLoader resourceLoader,
                                   ConfigurableBootstrapContext bootstrapContext,
                                   java.lang.String... additionalProfiles)
        Apply ConfigData post-processing to an existing Environment. This method can be useful when working with an Environment that has been created directly and not necessarily as part of a SpringApplication.
        Parameters:
        environment - the environment to apply ConfigData to
        resourceLoader - the resource loader to use
        bootstrapContext - the bootstrap context to use or null to use a throw-away context
        additionalProfiles - any additional profiles that should be applied
      • applyTo

        public static void applyTo(org.springframework.core.env.ConfigurableEnvironment environment,
                                   org.springframework.core.io.ResourceLoader resourceLoader,
                                   ConfigurableBootstrapContext bootstrapContext,
                                   java.util.Collection<java.lang.String> additionalProfiles)
        Apply ConfigData post-processing to an existing Environment. This method can be useful when working with an Environment that has been created directly and not necessarily as part of a SpringApplication.
        Parameters:
        environment - the environment to apply ConfigData to
        resourceLoader - the resource loader to use
        bootstrapContext - the bootstrap context to use or null to use a throw-away context
        additionalProfiles - any additional profiles that should be applied
      • applyTo

        public static void applyTo(org.springframework.core.env.ConfigurableEnvironment environment,
                                   org.springframework.core.io.ResourceLoader resourceLoader,
                                   ConfigurableBootstrapContext bootstrapContext,
                                   java.util.Collection<java.lang.String> additionalProfiles,
                                   ConfigDataEnvironmentUpdateListener environmentUpdateListener)
        Apply ConfigData post-processing to an existing Environment. This method can be useful when working with an Environment that has been created directly and not necessarily as part of a SpringApplication.
        Parameters:
        environment - the environment to apply ConfigData to
        resourceLoader - the resource loader to use
        bootstrapContext - the bootstrap context to use or null to use a throw-away context
        additionalProfiles - any additional profiles that should be applied
        environmentUpdateListener - optional ConfigDataEnvironmentUpdateListener that can be used to track Environment updates.