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

public abstract class ApplicationContextEvent extends ApplicationEvent
Base class for events raised for an ApplicationContext.
Since:
2.5
Author:
Juergen Hoeller
See Also:
  • Constructor Details

    • ApplicationContextEvent

      public ApplicationContextEvent(ApplicationContext source)
      Create a new ContextStartedEvent.
      Parameters:
      source - the ApplicationContext that the event is raised for (must not be null)
  • Method Details

    • getApplicationContext

      public final ApplicationContext getApplicationContext()
      Get the ApplicationContext that the event was raised for.