Top Description Constructors Methods
org.springframework.context.event

public abstract Class ApplicationContextEvent

extends ApplicationEvent
Class Inheritance
Known Direct Subclasses
org.springframework.context.event.ContextClosedEvent, org.springframework.context.event.ContextRefreshedEvent, org.springframework.context.event.ContextStartedEvent, org.springframework.context.event.ContextStoppedEvent
Annotations
@SuppressWarnings:serial
Imports
org.springframework.context.ApplicationContext, .ApplicationEvent

Base class for events raised for an ApplicationContext.
Author
Juergen Hoeller
Since
2.5

Constructor Summary

AccessConstructor and Description
public
ApplicationContextEvent(ApplicationContext
the ApplicationContext that the event is raised for (must not be null)
source
)

Create a new ContextStartedEvent.

Method Summary

Modifier and TypeMethod and Description
public final ApplicationContext
getApplicationContext()

Get the ApplicationContext that the event was raised for.

Inherited from org.springframework.context.ApplicationEvent:
getTimestamp

Constructor Detail

ApplicationContextEventback to summary
public ApplicationContextEvent(ApplicationContext source)

Create a new ContextStartedEvent.

Parameters
source:ApplicationContext

the ApplicationContext that the event is raised for (must not be null)

Method Detail

getApplicationContextback to summary
public final ApplicationContext getApplicationContext()

Get the ApplicationContext that the event was raised for.