org.springframework.context.event.ApplicationEventMulticaster |
Known Indirect Subclasses |
Interface to be implemented by objects that can manage a number of
ApplicationListener
objects, and publish events to them.
An ApplicationEventPublisher
, typically
a Spring ApplicationContext
, can use an
ApplicationEventMulticaster as a delegate for actually publishing events.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a listener to be notified of all events.
| |||||||||||
Add a listener bean to be notified of all events.
| |||||||||||
Multicast the given application event to appropriate listeners.
| |||||||||||
Remove all listeners registered with this multicaster.
| |||||||||||
Remove a listener from the notification list.
| |||||||||||
Remove a listener bean from the notification list.
|
Add a listener to be notified of all events.
listener | the listener to add |
---|
Add a listener bean to be notified of all events.
listenerBeanName | the name of the listener bean to add |
---|
Multicast the given application event to appropriate listeners.
event | the event to multicast |
---|
Remove all listeners registered with this multicaster.
After a remove call, the multicaster will perform no action on event notification until new listeners are being registered.
Remove a listener from the notification list.
listener | the listener to remove |
---|
Remove a listener bean from the notification list.
listenerBeanName | the name of the listener bean to add |
---|