类 AbstractApplicationEventMulticaster

java.lang.Object
cn.taketoday.context.event.AbstractApplicationEventMulticaster
所有已实现的接口:
Aware, BeanClassLoaderAware, BeanFactoryAware, ApplicationEventMulticaster
直接已知子类:
SimpleApplicationEventMulticaster

public abstract class AbstractApplicationEventMulticaster extends Object implements ApplicationEventMulticaster, BeanClassLoaderAware, BeanFactoryAware
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. The collection class used to hold ApplicationListener objects can be overridden through the "collectionClass" bean property.

Implementing ApplicationEventMulticaster's actual ApplicationEventMulticaster.multicastEvent(cn.taketoday.context.ApplicationEvent) 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.

从以下版本开始:
4.0
作者:
Juergen Hoeller, Stephane Nicoll, Harry Yang
另请参阅: