Class ConfigDataEnvironmentPostProcessor
java.lang.Object
org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor
- All Implemented Interfaces:
 EnvironmentPostProcessor,Ordered
public class ConfigDataEnvironmentPostProcessor
extends Object
implements EnvironmentPostProcessor, Ordered
- Since:
 - 2.4.0
 - Author:
 - Phillip Webb, Madhura Bhave, Nguyen Bao Sach
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty used to determine what action to take when aConfigDataLocationNotFoundExceptionis thrown.static final intThe default order for the processor.Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE - 
Constructor Summary
ConstructorsConstructorDescriptionConfigDataEnvironmentPostProcessor(DeferredLogFactory logFactory, ConfigurableBootstrapContext bootstrapContext)  - 
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyTo(ConfigurableEnvironment environment) ApplyConfigDatapost-processing to an existingEnvironment.static voidapplyTo(ConfigurableEnvironment environment, ResourceLoader resourceLoader, ConfigurableBootstrapContext bootstrapContext, String... additionalProfiles) ApplyConfigDatapost-processing to an existingEnvironment.static voidapplyTo(ConfigurableEnvironment environment, ResourceLoader resourceLoader, ConfigurableBootstrapContext bootstrapContext, Collection<String> additionalProfiles) ApplyConfigDatapost-processing to an existingEnvironment.static voidapplyTo(ConfigurableEnvironment environment, ResourceLoader resourceLoader, ConfigurableBootstrapContext bootstrapContext, Collection<String> additionalProfiles, ConfigDataEnvironmentUpdateListener environmentUpdateListener) ApplyConfigDatapost-processing to an existingEnvironment.intgetOrder()voidpostProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) Post-process the givenenvironment. 
- 
Field Details
- 
ORDER
public static final int ORDERThe default order for the processor.- See Also:
 
 - 
ON_LOCATION_NOT_FOUND_PROPERTY
Property used to determine what action to take when aConfigDataLocationNotFoundExceptionis thrown. 
 - 
 - 
Constructor Details
- 
ConfigDataEnvironmentPostProcessor
public ConfigDataEnvironmentPostProcessor(DeferredLogFactory logFactory, ConfigurableBootstrapContext bootstrapContext)  
 - 
 - 
Method Details
- 
getOrder
public int getOrder() - 
postProcessEnvironment
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) Description copied from interface:EnvironmentPostProcessorPost-process the givenenvironment.- Specified by:
 postProcessEnvironmentin interfaceEnvironmentPostProcessor- Parameters:
 environment- the environment to post-processapplication- the application to which the environment belongs
 - 
applyTo
ApplyConfigDatapost-processing to an existingEnvironment. This method can be useful when working with anEnvironmentthat has been created directly and not necessarily as part of aSpringApplication.- Parameters:
 environment- the environment to applyConfigDatato
 - 
applyTo
public static void applyTo(ConfigurableEnvironment environment, ResourceLoader resourceLoader, ConfigurableBootstrapContext bootstrapContext, String... additionalProfiles) ApplyConfigDatapost-processing to an existingEnvironment. This method can be useful when working with anEnvironmentthat has been created directly and not necessarily as part of aSpringApplication.- Parameters:
 environment- the environment to applyConfigDatatoresourceLoader- the resource loader to usebootstrapContext- the bootstrap context to use ornullto use a throw-away contextadditionalProfiles- any additional profiles that should be applied
 - 
applyTo
public static void applyTo(ConfigurableEnvironment environment, ResourceLoader resourceLoader, ConfigurableBootstrapContext bootstrapContext, Collection<String> additionalProfiles) ApplyConfigDatapost-processing to an existingEnvironment. This method can be useful when working with anEnvironmentthat has been created directly and not necessarily as part of aSpringApplication.- Parameters:
 environment- the environment to applyConfigDatatoresourceLoader- the resource loader to usebootstrapContext- the bootstrap context to use ornullto use a throw-away contextadditionalProfiles- any additional profiles that should be applied
 - 
applyTo
public static void applyTo(ConfigurableEnvironment environment, ResourceLoader resourceLoader, ConfigurableBootstrapContext bootstrapContext, Collection<String> additionalProfiles, ConfigDataEnvironmentUpdateListener environmentUpdateListener) ApplyConfigDatapost-processing to an existingEnvironment. This method can be useful when working with anEnvironmentthat has been created directly and not necessarily as part of aSpringApplication.- Parameters:
 environment- the environment to applyConfigDatatoresourceLoader- the resource loader to usebootstrapContext- the bootstrap context to use ornullto use a throw-away contextadditionalProfiles- any additional profiles that should be appliedenvironmentUpdateListener- optionalConfigDataEnvironmentUpdateListenerthat can be used to trackEnvironmentupdates.
 
 -