|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.util.AbstractAnnotationHandlerBeanPostProcessor
org.axonframework.eventhandling.annotation.AnnotationEventListenerBeanPostProcessor
public class AnnotationEventListenerBeanPostProcessor
Spring Bean post processor that automatically generates an adapter for each bean containing EventHandler
annotated methods.
| Constructor Summary | |
|---|---|
AnnotationEventListenerBeanPostProcessor()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected Class<?> |
getAdapterInterface()
Returns the interface that the adapter implements to connect the annotated method to the actual interface definition. |
protected AnnotationEventListenerAdapter |
initializeAdapterFor(Object bean)
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. |
void |
setEventBus(EventBus eventBus)
Sets the event bus to which detected event listeners should be subscribed. |
void |
setExecutor(Executor executor)
Sets the Executor to use when the AnnotationEventListenerBeanPostProcessor encounters event listeners with the AsynchronousEventListener annotation. |
| Methods inherited from class org.axonframework.util.AbstractAnnotationHandlerBeanPostProcessor |
|---|
getApplicationContext, postProcessAfterInitialization, postProcessBeforeDestruction, postProcessBeforeInitialization, setApplicationContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationEventListenerBeanPostProcessor()
| Method Detail |
|---|
protected Class<?> getAdapterInterface()
AbstractAnnotationHandlerBeanPostProcessor
getAdapterInterface in class AbstractAnnotationHandlerBeanPostProcessorprotected AnnotationEventListenerAdapter initializeAdapterFor(Object bean)
bean. This adapter will receive all event
handler calls to be handled by this bean.
initializeAdapterFor in class AbstractAnnotationHandlerBeanPostProcessorbean - The bean that the EventListenerAdapter has to adapt
beanprotected boolean isPostProcessingCandidate(Class<?> targetClass)
AbstractAnnotationHandlerBeanPostProcessortargetClass should be post processed.
isPostProcessingCandidate in class AbstractAnnotationHandlerBeanPostProcessortargetClass - The type of bean
public void afterPropertiesSet()
throws Exception
Exceptionpublic void setExecutor(Executor executor)
AsynchronousEventListener annotation.
executor - the Executor to use for asynchronous event listenerspublic void setEventBus(EventBus eventBus)
eventBus - the event bus to subscribe detected event listeners to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||