public class ConfigDataEnvironmentPostProcessor extends java.lang.Object implements EnvironmentPostProcessor, org.springframework.core.Ordered
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ON_LOCATION_NOT_FOUND_PROPERTY
Property used to determine what action to take when a
ConfigDataLocationNotFoundException is thrown. |
static int |
ORDER
The default order for the processor.
|
Constructor and Description |
---|
ConfigDataEnvironmentPostProcessor(DeferredLogFactory logFactory,
ConfigurableBootstrapContext bootstrapContext) |
ConfigDataEnvironmentPostProcessor(DeferredLogFactory logFactory,
ConfigurableBootstrapContext bootstrapContext,
ConfigDataEnvironmentUpdateListener environmentUpdateListener) |
Modifier and Type | Method and Description |
---|---|
static void |
applyTo(org.springframework.core.env.ConfigurableEnvironment environment)
Apply
ConfigData post-processing to an existing Environment . |
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 . |
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 . |
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 . |
int |
getOrder() |
void |
postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment,
SpringApplication application)
Post-process the given
environment . |
public static final int ORDER
public static final java.lang.String ON_LOCATION_NOT_FOUND_PROPERTY
ConfigDataLocationNotFoundException
is thrown.ConfigDataNotFoundAction
,
Constant Field Valuespublic ConfigDataEnvironmentPostProcessor(DeferredLogFactory logFactory, ConfigurableBootstrapContext bootstrapContext)
public ConfigDataEnvironmentPostProcessor(DeferredLogFactory logFactory, ConfigurableBootstrapContext bootstrapContext, ConfigDataEnvironmentUpdateListener environmentUpdateListener)
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, SpringApplication application)
EnvironmentPostProcessor
environment
.postProcessEnvironment
in interface EnvironmentPostProcessor
environment
- the environment to post-processapplication
- the application to which the environment belongspublic static void applyTo(org.springframework.core.env.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(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.core.io.ResourceLoader resourceLoader, ConfigurableBootstrapContext bootstrapContext, java.lang.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 usebootstrapContext
- the bootstrap context to use or null
to use a
throw-away contextadditionalProfiles
- any additional profiles that should be appliedpublic static void applyTo(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.core.io.ResourceLoader resourceLoader, ConfigurableBootstrapContext bootstrapContext, java.util.Collection<java.lang.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 usebootstrapContext
- the bootstrap context to use or null
to use a
throw-away contextadditionalProfiles
- any additional profiles that should be appliedpublic 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)
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 usebootstrapContext
- the bootstrap context to use or null
to use a
throw-away contextadditionalProfiles
- any additional profiles that should be appliedenvironmentUpdateListener
- optional
ConfigDataEnvironmentUpdateListener
that can be used to track
Environment
updates.