Class ApplicationPreparedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.context.event.SpringApplicationEvent
org.springframework.boot.context.event.ApplicationPreparedEvent
- All Implemented Interfaces:
- Serializable
Event published as when a 
SpringApplication is starting up and the
ApplicationContext is fully prepared but not refreshed. The bean definitions
will be loaded and the Environment is ready for use at this stage.- Since:
- 1.0.0
- Author:
- Dave Syer
- See Also:
- 
Field SummaryFields inherited from class EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionApplicationPreparedEvent(SpringApplication application, String[] args, ConfigurableApplicationContext context) Create a newApplicationPreparedEventinstance.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the application context.Methods inherited from class SpringApplicationEventgetArgs, getSpringApplicationMethods inherited from class ApplicationEventgetTimestampMethods inherited from class EventObjectgetSource, toString
- 
Constructor Details- 
ApplicationPreparedEventpublic ApplicationPreparedEvent(SpringApplication application, String[] args, ConfigurableApplicationContext context) Create a newApplicationPreparedEventinstance.- Parameters:
- application- the current application
- args- the arguments the application is running with
- context- the ApplicationContext about to be refreshed
 
 
- 
- 
Method Details- 
getApplicationContextReturn the application context.- Returns:
- the context
 
 
-