|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.saga.annotation.SagaEventHandlerInvoker
public class SagaEventHandlerInvoker
Utility class that invokes annotated Event Handlers on Sagas.
| Constructor Summary | |
|---|---|
SagaEventHandlerInvoker(Object target)
Initialize a handler invoker for the given target object that has handler method annotated with
given annotationType. |
|
| Method Summary | |
|---|---|
void |
invokeSagaEventHandlerMethod(EventMessage event)
Invoke the annotated Event Handler method for the given event on the target Saga. |
boolean |
isEndingEvent(EventMessage event)
Indicates whether the handler of the target event indicates an ending event handler (i.e. is annotated with EndSaga). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SagaEventHandlerInvoker(Object target)
target object that has handler method annotated with
given annotationType.
target - The target to invoke methods on| Method Detail |
|---|
public boolean isEndingEvent(EventMessage event)
EndSaga).
event - The event to investigate the handler for
true if handling the given event should end the lifecycle of the Saga,
false otherwise.public void invokeSagaEventHandlerMethod(EventMessage event)
event on the target Saga.
event - The event to invoke the Event Handler for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||