类 EventListenerMethodProcessor
java.lang.Object
cn.taketoday.context.event.EventListenerMethodProcessor
public class EventListenerMethodProcessor
extends Object
implements BeanFactoryPostProcessor, SmartInitializingSingleton, ApplicationContextAware
Process @EventListener annotated on a method
Registers EventListener methods as individual ApplicationListener instances.
Implements BeanFactoryPostProcessor primarily for early retrieval,
avoiding AOP checks for this processor bean and its EventListenerFactory delegates.
- 作者:
- TODAY 2021/3/17 12:35
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidvoidpostProcessBeanFactory(ConfigurableBeanFactory beanFactory) voidsetApplicationContext(ApplicationContext applicationContext) Set the ApplicationContext that this object runs in.
-
字段详细资料
-
logger
protected final cn.taketoday.logging.Logger logger
-
-
构造器详细资料
-
EventListenerMethodProcessor
public EventListenerMethodProcessor()
-
-
方法详细资料
-
setApplicationContext
从接口复制的说明:ApplicationContextAwareSet the ApplicationContext that this object runs in. Normally this call will be used to initialize the object.Invoked after population of normal bean properties but before an init callback such as
InitializingBean.afterPropertiesSet()or a custom init-method. Invoked afterResourceLoaderAware.setResourceLoader(cn.taketoday.core.io.ResourceLoader),ApplicationEventPublisherAware.setApplicationEventPublisher(cn.taketoday.context.ApplicationEventPublisher)andMessageSourceAware, if applicable.- 指定者:
setApplicationContext在接口中ApplicationContextAware- 参数:
applicationContext- the ApplicationContext object to be used by this object- 另请参阅:
-
postProcessBeanFactory
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()
-