public class EventListenerMethodProcessor extends java.lang.Object implements org.springframework.beans.factory.SmartInitializingSingleton, ApplicationContextAware
EventListener
annotated method as individual ApplicationListener
instances.Constructor and Description |
---|
EventListenerMethodProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
afterSingletonsInstantiated() |
protected java.util.List<EventListenerFactory> |
getEventListenerFactories()
Return the
EventListenerFactory instances to use to handle
EventListener annotated methods. |
protected void |
processBean(java.util.List<EventListenerFactory> factories,
java.lang.String beanName,
java.lang.Class<?> targetType) |
void |
setApplicationContext(ApplicationContext applicationContext)
Set the ApplicationContext that this object runs in.
|
protected final Log logger
public void setApplicationContext(ApplicationContext applicationContext)
ApplicationContextAware
Invoked after population of normal bean properties but before an init callback such
as InitializingBean.afterPropertiesSet()
or a custom init-method. Invoked after ResourceLoaderAware.setResourceLoader(org.springframework.core.io.ResourceLoader)
,
ApplicationEventPublisherAware.setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher)
and
MessageSourceAware
, if applicable.
setApplicationContext
in interface ApplicationContextAware
applicationContext
- the ApplicationContext object to be used by this objectBeanInitializationException
public void afterSingletonsInstantiated()
afterSingletonsInstantiated
in interface org.springframework.beans.factory.SmartInitializingSingleton
protected java.util.List<EventListenerFactory> getEventListenerFactories()
EventListenerFactory
instances to use to handle
EventListener
annotated methods.protected void processBean(java.util.List<EventListenerFactory> factories, java.lang.String beanName, java.lang.Class<?> targetType)