public class ApplicationEnvironmentPreparedEvent extends SpringApplicationEvent
SpringApplication is starting up and the
Environment is first available for inspection and modification.source| Constructor and Description |
|---|
ApplicationEnvironmentPreparedEvent(ConfigurableBootstrapContext bootstrapContext,
SpringApplication application,
String[] args,
ConfigurableEnvironment environment)
Create a new
ApplicationEnvironmentPreparedEvent instance. |
| Modifier and Type | Method and Description |
|---|---|
ConfigurableBootstrapContext |
getBootstrapContext()
Return the bootstrap context.
|
ConfigurableEnvironment |
getEnvironment()
Return the environment.
|
getArgs, getSpringApplicationgetTimestampgetSource, toStringpublic ApplicationEnvironmentPreparedEvent(ConfigurableBootstrapContext bootstrapContext, SpringApplication application, String[] args, ConfigurableEnvironment environment)
ApplicationEnvironmentPreparedEvent instance.bootstrapContext - the bootstrap contextapplication - the current applicationargs - the arguments the application is running withenvironment - the environment that was just createdpublic ConfigurableBootstrapContext getBootstrapContext()
public ConfigurableEnvironment getEnvironment()