Class ApplicationContextEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.context.event.ApplicationContextEvent
- All Implemented Interfaces:
 Serializable
- Direct Known Subclasses:
 ContextClosedEvent,ContextRefreshedEvent,ContextStartedEvent,ContextStoppedEvent
Base class for events raised for an 
ApplicationContext.- Since:
 - 2.5
 - Author:
 - Juergen Hoeller
 - See Also:
 
- 
Field Summary
Fields inherited from class java.util.EventObject
source - 
Constructor Summary
ConstructorsConstructorDescriptionCreate a newApplicationContextEvent. - 
Method Summary
Modifier and TypeMethodDescriptionfinal ApplicationContextGet theApplicationContextthat the event was raised for.Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString 
- 
Constructor Details
- 
ApplicationContextEvent
Create a newApplicationContextEvent.- Parameters:
 source- theApplicationContextthat the event is raised for (must not benull)
 
 - 
 - 
Method Details
- 
getApplicationContext
Get theApplicationContextthat the event was raised for. 
 -