org.springframework.context.event |
Support classes for application events, like standard context events.
To be supported by all major application context implementations.
|
Java Source File Name | Type | Comment |
AbstractApplicationEventMulticaster.java | Class | Abstract implementation of the ApplicationEventMulticaster interface,
providing the basic listener registration facility.
Doesn't permit multiple instances of the same listener by default,
as it keeps listeners in a linked Set. |
ApplicationEventMulticaster.java | Interface | Interface to be implemented by objects that can manage a number
of ApplicationListeners, and publish events to them. |
ConsoleListener.java | Class | Simple listener for debug use only that logs messages
to the console.
Note: The ApplicationContext implementations included
in the framework do quite heavy debug-level logging via
Log4J, including published events. |
ContextClosedEvent.java | Class | Event raised when an ApplicationContext gets closed. |
ContextRefreshedEvent.java | Class | Event raised when an ApplicationContext is initialized or refreshed. |
EventPublicationInterceptor.java | Class | MethodInterceptor Interceptor that publishes an
ApplicationEvent to all ApplicationListeners
registered with an ApplicationEventPublisher after each
successful method invocation. |
SimpleApplicationEventMulticaster.java | Class | Simple implementation of the ApplicationEventMulticaster interface.
Multicasts all events to all registered listeners, leaving it up to
the listeners to ignore events that they are not interested in.
Listeners will usually perform corresponding instanceof
checks on the passed-in event object.
By default, all listeners are invoked in the calling thread.
This allows the danger of a rogue listener blocking the entire application,
but adds minimal overhead. |
SourceFilteringListener.java | Class | org.springframework.context.ApplicationListener decorator that filters
events from a specified event source, invoking its delegate listener for
matching
org.springframework.context.ApplicationEvent objects only. |