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. |
ApplicationEnvironmentPreparedEvent(SpringApplication application,
String[] args,
ConfigurableEnvironment environment)
Deprecated.
since 2.4.0 for removal in 2.6.0 in favor of
ApplicationEnvironmentPreparedEvent(ConfigurableBootstrapContext, SpringApplication, String[], ConfigurableEnvironment) |
Modifier and Type | Method and Description |
---|---|
ConfigurableBootstrapContext |
getBootstrapContext()
Return the bootstap context.
|
ConfigurableEnvironment |
getEnvironment()
Return the environment.
|
getArgs, getSpringApplication
getTimestamp
getSource, toString
@Deprecated public ApplicationEnvironmentPreparedEvent(SpringApplication application, String[] args, ConfigurableEnvironment environment)
ApplicationEnvironmentPreparedEvent(ConfigurableBootstrapContext, SpringApplication, String[], ConfigurableEnvironment)
ApplicationEnvironmentPreparedEvent
instance.application
- the current applicationargs
- the arguments the application is running withenvironment
- the environment that was just createdpublic 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()