public class ConfigDataEnvironmentPostProcessor extends Object implements EnvironmentPostProcessor, Ordered
| Modifier and Type | Field and Description |
|---|---|
static int |
ORDER
The default order for the processor.
|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
ConfigDataEnvironmentPostProcessor(DeferredLogFactory logFactory) |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyTo(ConfigurableEnvironment environment)
Apply
ConfigData post-processing to an existing Environment. |
static void |
applyTo(ConfigurableEnvironment environment,
ResourceLoader resourceLoader,
Collection<String> additionalProfiles)
Apply
ConfigData post-processing to an existing Environment. |
static void |
applyTo(ConfigurableEnvironment environment,
ResourceLoader resourceLoader,
String... additionalProfiles)
Apply
ConfigData post-processing to an existing Environment. |
int |
getOrder() |
void |
postProcessEnvironment(ConfigurableEnvironment environment,
SpringApplication application)
Post-process the given
environment. |
public static final int ORDER
public ConfigDataEnvironmentPostProcessor(DeferredLogFactory logFactory)
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application)
EnvironmentPostProcessorenvironment.postProcessEnvironment in interface EnvironmentPostProcessorenvironment - the environment to post-processapplication - the application to which the environment belongspublic static void applyTo(ConfigurableEnvironment environment)
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.environment - the environment to apply ConfigData topublic static void applyTo(ConfigurableEnvironment environment, ResourceLoader resourceLoader, String... additionalProfiles)
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.environment - the environment to apply ConfigData toresourceLoader - the resource loader to useadditionalProfiles - any additional profiles that should be appliedpublic static void applyTo(ConfigurableEnvironment environment, ResourceLoader resourceLoader, Collection<String> additionalProfiles)
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.environment - the environment to apply ConfigData toresourceLoader - the resource loader to useadditionalProfiles - any additional profiles that should be applied