Package | Description |
---|---|
org.springframework.boot |
Core Spring Boot classes.
|
org.springframework.boot.context.config |
External configuration support allowing 'application.properties' to be loaded and used
within a Spring Boot application.
|
org.springframework.boot.context.event |
ApplicationEvents triggered by
Spring Boot. |
org.springframework.boot.env |
Spring
Environment support. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultBootstrapContext
Default
ConfigurableBootstrapContext implementation. |
Modifier and Type | Method and Description |
---|---|
default void |
SpringApplicationRunListener.environmentPrepared(ConfigurableBootstrapContext bootstrapContext,
ConfigurableEnvironment environment)
Called once the environment has been prepared, but before the
ApplicationContext has been created. |
default void |
SpringApplicationRunListener.starting(ConfigurableBootstrapContext bootstrapContext)
Called immediately when the run method has first started.
|
Modifier and Type | Method and Description |
---|---|
ConfigurableBootstrapContext |
ConfigDataLoaderContext.getBootstrapContext()
Provides access to the
ConfigurableBootstrapContext shared across all
EnvironmentPostProcessors . |
ConfigurableBootstrapContext |
ConfigDataLocationResolverContext.getBootstrapContext()
Provides access to the
ConfigurableBootstrapContext shared across all
EnvironmentPostProcessors . |
Modifier and Type | Method and Description |
---|---|
static void |
ConfigDataEnvironmentPostProcessor.applyTo(ConfigurableEnvironment environment,
ResourceLoader resourceLoader,
ConfigurableBootstrapContext bootstrapContext,
Collection<String> additionalProfiles)
Apply
ConfigData post-processing to an existing Environment . |
static void |
ConfigDataEnvironmentPostProcessor.applyTo(ConfigurableEnvironment environment,
ResourceLoader resourceLoader,
ConfigurableBootstrapContext bootstrapContext,
Collection<String> additionalProfiles,
ConfigDataEnvironmentUpdateListener environmentUpdateListener)
Apply
ConfigData post-processing to an existing Environment . |
static void |
ConfigDataEnvironmentPostProcessor.applyTo(ConfigurableEnvironment environment,
ResourceLoader resourceLoader,
ConfigurableBootstrapContext bootstrapContext,
String... additionalProfiles)
Apply
ConfigData post-processing to an existing Environment . |
Constructor and Description |
---|
ConfigDataEnvironmentPostProcessor(DeferredLogFactory logFactory,
ConfigurableBootstrapContext bootstrapContext) |
ConfigDataEnvironmentPostProcessor(DeferredLogFactory logFactory,
ConfigurableBootstrapContext bootstrapContext,
ConfigDataEnvironmentUpdateListener environmentUpdateListener) |
Modifier and Type | Method and Description |
---|---|
ConfigurableBootstrapContext |
ApplicationEnvironmentPreparedEvent.getBootstrapContext()
Return the bootstap context.
|
ConfigurableBootstrapContext |
ApplicationStartingEvent.getBootstrapContext()
Return the bootstap context.
|
Modifier and Type | Method and Description |
---|---|
void |
EventPublishingRunListener.environmentPrepared(ConfigurableBootstrapContext bootstrapContext,
ConfigurableEnvironment environment) |
void |
EventPublishingRunListener.starting(ConfigurableBootstrapContext bootstrapContext) |
Constructor and Description |
---|
ApplicationEnvironmentPreparedEvent(ConfigurableBootstrapContext bootstrapContext,
SpringApplication application,
String[] args,
ConfigurableEnvironment environment)
Create a new
ApplicationEnvironmentPreparedEvent instance. |
ApplicationStartingEvent(ConfigurableBootstrapContext bootstrapContext,
SpringApplication application,
String[] args)
Create a new
ApplicationStartingEvent instance. |
Modifier and Type | Method and Description |
---|---|
List<EnvironmentPostProcessor> |
EnvironmentPostProcessorsFactory.getEnvironmentPostProcessors(DeferredLogFactory logFactory,
ConfigurableBootstrapContext bootstrapContext)
Create all requested
EnvironmentPostProcessor instances. |