Class ApplicationEnvironmentPreparedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.context.event.SpringApplicationEvent
org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent
- All Implemented Interfaces:
- Serializable
Event published when a 
SpringApplication is starting up and the
 Environment is first available for inspection and modification.- Since:
- 1.0.0
- Author:
- Dave Syer
- See Also:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionApplicationEnvironmentPreparedEvent(ConfigurableBootstrapContext bootstrapContext, SpringApplication application, String[] args, ConfigurableEnvironment environment) Create a newApplicationEnvironmentPreparedEventinstance.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the bootstrap context.Return the environment.Methods inherited from class org.springframework.boot.context.event.SpringApplicationEventgetArgs, getSpringApplicationMethods inherited from class org.springframework.context.ApplicationEventgetTimestampMethods inherited from class java.util.EventObjectgetSource, toString
- 
Constructor Details- 
ApplicationEnvironmentPreparedEventpublic ApplicationEnvironmentPreparedEvent(ConfigurableBootstrapContext bootstrapContext, SpringApplication application, String[] args, ConfigurableEnvironment environment) Create a newApplicationEnvironmentPreparedEventinstance.- Parameters:
- bootstrapContext- the bootstrap context
- application- the current application
- args- the arguments the application is running with
- environment- the environment that was just created
 
 
- 
- 
Method Details- 
getBootstrapContextReturn the bootstrap context.- Returns:
- the bootstrap context
- Since:
- 2.4.0
 
- 
getEnvironmentReturn the environment.- Returns:
- the environment
 
 
-