|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.util.AbstractHandlerInspector
org.axonframework.util.AbstractHandlerInvoker
org.axonframework.eventhandling.annotation.AnnotationEventHandlerInvoker
public class AnnotationEventHandlerInvoker
Utility class that supports invocation of specific handler methods for a given event. See EventHandler for
the rules for resolving the appropriate method.
EventHandler| Constructor Summary | |
|---|---|
AnnotationEventHandlerInvoker(Object target)
Initialize an event handler invoker that invokes handlers on the given target |
|
| Method Summary | |
|---|---|
void |
invokeAfterTransaction(TransactionStatus transactionStatus)
Invoke the "AfterTransaction" method on the target. |
void |
invokeBeforeTransaction(TransactionStatus transactionStatus)
Invoke the "BeforeTransaction" method on the target. |
void |
invokeEventHandlerMethod(Event event)
Invoke the event handler on the target for the given event |
| Methods inherited from class org.axonframework.util.AbstractHandlerInvoker |
|---|
getTarget, invokeHandlerMethod, invokeHandlerMethod, onNoMethodFound |
| Methods inherited from class org.axonframework.util.AbstractHandlerInspector |
|---|
findHandlerMethod |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationEventHandlerInvoker(Object target)
target
target - the bean on which to invoke event handlers| Method Detail |
|---|
public void invokeEventHandlerMethod(Event event)
event
event - the event to handlepublic void invokeBeforeTransaction(TransactionStatus transactionStatus)
BeforeTransaction
transactionStatus - The status of the transaction to pass as parameter to the method callpublic void invokeAfterTransaction(TransactionStatus transactionStatus)
AfterTransaction
transactionStatus - The status of the transaction to pass as parameter to the method call
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||