Class ApplicationContextInitializedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.context.event.SpringApplicationEvent
org.springframework.boot.context.event.ApplicationContextInitializedEvent
- All Implemented Interfaces:
 Serializable
Event published when a 
SpringApplication is starting up and the
 ApplicationContext is prepared and ApplicationContextInitializers have been
 called but before any bean definitions are loaded.- Since:
 - 2.1.0
 - Author:
 - Artsiom Yudovin
 - See Also:
 
- 
Field Summary
Fields inherited from class java.util.EventObject
source - 
Constructor Summary
ConstructorsConstructorDescriptionApplicationContextInitializedEvent(SpringApplication application, String[] args, ConfigurableApplicationContext context) Create a newApplicationContextInitializedEventinstance. - 
Method Summary
Modifier and TypeMethodDescriptionReturn the application context.Methods inherited from class org.springframework.boot.context.event.SpringApplicationEvent
getArgs, getSpringApplicationMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString 
- 
Constructor Details
- 
ApplicationContextInitializedEvent
public ApplicationContextInitializedEvent(SpringApplication application, String[] args, ConfigurableApplicationContext context) Create a newApplicationContextInitializedEventinstance.- Parameters:
 application- the current applicationargs- the arguments the application is running withcontext- the context that has been initialized
 
 - 
 - 
Method Details
- 
getApplicationContext
Return the application context.- Returns:
 - the context
 
 
 -