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
ConstructorDescriptionCreate a newApplicationContextEvent
. -
Method Summary
Modifier and TypeMethodDescriptionfinal ApplicationContext
Get theApplicationContext
that the event was raised for.Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ApplicationContextEvent
Create a newApplicationContextEvent
.- Parameters:
source
- theApplicationContext
that the event is raised for (must not benull
)
-
-
Method Details
-
getApplicationContext
Get theApplicationContext
that the event was raised for.
-