public class AnnotationEventListenerBeanPostProcessor extends AbstractAnnotationHandlerBeanPostProcessor<org.axonframework.eventhandling.EventListener,org.axonframework.eventhandling.AnnotationEventListenerAdapter>
EventHandler
annotated methods.| Constructor and Description |
|---|
AnnotationEventListenerBeanPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected Class<?>[] |
getAdapterInterfaces()
Returns the interface that the adapter implements to connect the annotated method to the actual interface
definition.
|
protected org.axonframework.eventhandling.AnnotationEventListenerAdapter |
initializeAdapterFor(Object bean,
org.axonframework.messaging.annotation.ParameterResolverFactory parameterResolverFactory)
Create an AnnotationEventListenerAdapter instance of the given
bean. |
protected boolean |
isPostProcessingCandidate(Class<?> targetClass)
Indicates whether an object of the given
targetClass should be post processed. |
postProcessAfterInitialization, postProcessBeforeInitialization, setBeanFactory, setParameterResolverFactorypublic AnnotationEventListenerBeanPostProcessor()
protected Class<?>[] getAdapterInterfaces()
AbstractAnnotationHandlerBeanPostProcessorgetAdapterInterfaces in class AbstractAnnotationHandlerBeanPostProcessor<org.axonframework.eventhandling.EventListener,org.axonframework.eventhandling.AnnotationEventListenerAdapter>protected org.axonframework.eventhandling.AnnotationEventListenerAdapter initializeAdapterFor(Object bean, org.axonframework.messaging.annotation.ParameterResolverFactory parameterResolverFactory)
AbstractAnnotationHandlerBeanPostProcessorbean. This adapter will receive all event
handler calls to be handled by this bean.initializeAdapterFor in class AbstractAnnotationHandlerBeanPostProcessor<org.axonframework.eventhandling.EventListener,org.axonframework.eventhandling.AnnotationEventListenerAdapter>bean - The bean that the EventListenerAdapter has to adaptparameterResolverFactory - The parameter resolver factory that provides the parameter resolvers for the
annotated handlersbeanprotected boolean isPostProcessingCandidate(Class<?> targetClass)
AbstractAnnotationHandlerBeanPostProcessortargetClass should be post processed.isPostProcessingCandidate in class AbstractAnnotationHandlerBeanPostProcessor<org.axonframework.eventhandling.EventListener,org.axonframework.eventhandling.AnnotationEventListenerAdapter>targetClass - The type of beanCopyright © 2010–2016. All rights reserved.