java.lang.Objectorg.springframework.context.event.AbstractApplicationEventMulticaster
All Implemented Interfaces:
ApplicationEventMulticaster
Direct Known Subclasses:
SimpleApplicationEventMulticaster
Doesn't permit multiple instances of the same listener by default, as it keeps listeners in a linked Set. The collection class used to hold ApplicationListener objects can be overridden through the "collectionClass" bean property.
Implementing ApplicationEventMulticaster's actual #multicastEvent method is left to subclasses. SimpleApplicationEventMulticaster simply multicasts all events to all registered listeners, invoking them in the calling thread. Alternative implementations could be more sophisticated in those respects.
Juergen - Hoeller1.2.3 - | Method from org.springframework.context.event.AbstractApplicationEventMulticaster Summary: |
|---|
| addApplicationListener, getApplicationListeners, removeAllListeners, removeApplicationListener, setCollectionClass, setConcurrentUpdates |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.springframework.context.event.AbstractApplicationEventMulticaster Detail: |
|---|
|
Note that this is the raw Collection of ApplicationListeners, potentially modified when new listeners get registered or existing ones get removed. This Collection is not a snapshot copy. |
|
|
Default is a linked HashSet, keeping the registration order. Note that a Set class specified will not permit multiple instances of the same listener, while a List class will allow for registering the same listener multiple times. |
|