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, Sam Brannen
- See Also:
-
Field Summary
Fields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionCreate a newApplicationContextEvent. -
Method Summary
Modifier and TypeMethodDescriptionfinal ApplicationContextGet theApplicationContextthat the event was raised for.Get theApplicationContextthat the event was raised for.Methods inherited from class ApplicationEvent
getTimestampMethods inherited from class EventObject
toString
-
Constructor Details
-
ApplicationContextEvent
Create a newApplicationContextEvent.- Parameters:
source- theApplicationContextthat the event is raised for (must not benull)
-
-
Method Details
-
getSource
Get theApplicationContextthat the event was raised for.- Overrides:
getSourcein classEventObject- Returns:
- the
ApplicationContextthat the event was raised for - Since:
- 7.0
- See Also:
-
getApplicationContext
Get theApplicationContextthat the event was raised for.- See Also:
-