public class ApplicationEnvironmentPreparedEvent extends SpringApplicationEvent
SpringApplication
is starting up and the
Environment
is first available for inspection and modification.Constructor and Description |
---|
ApplicationEnvironmentPreparedEvent(ConfigurableBootstrapContext bootstrapContext,
SpringApplication application,
java.lang.String[] args,
org.springframework.core.env.ConfigurableEnvironment environment)
Create a new
ApplicationEnvironmentPreparedEvent instance. |
ApplicationEnvironmentPreparedEvent(SpringApplication application,
java.lang.String[] args,
org.springframework.core.env.ConfigurableEnvironment environment)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ConfigurableBootstrapContext |
getBootstrapContext()
Return the bootstap context.
|
org.springframework.core.env.ConfigurableEnvironment |
getEnvironment()
Return the environment.
|
getArgs, getSpringApplication
@Deprecated public ApplicationEnvironmentPreparedEvent(SpringApplication application, java.lang.String[] args, org.springframework.core.env.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, java.lang.String[] args, org.springframework.core.env.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 org.springframework.core.env.ConfigurableEnvironment getEnvironment()