|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.saga.annotation.SagaMethodMessageHandlerInspector<T>
T - The type of saga targeted by this inspectorpublic class SagaMethodMessageHandlerInspector<T extends AbstractAnnotatedSaga>
Utility class that inspects annotation on a Saga instance and returns the relevant configuration for its Event Handlers.
| Constructor Summary | |
|---|---|
protected |
SagaMethodMessageHandlerInspector(Class<T> sagaType)
Initialize the inspector to handle events for the given sagaType. |
| Method Summary | ||
|---|---|---|
static
|
getInstance(Class<T> sagaType)
Returns a SagaMethodMessageHandlerInspector for the given sagaType. |
|
SagaMethodMessageHandler |
getMessageHandler(EventMessage event)
Find the configuration for the handler on the given sagaType for the given event. |
|
Class<T> |
getSagaType()
Returns the type of saga this inspector handles. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SagaMethodMessageHandlerInspector(Class<T> sagaType)
sagaType.
sagaType - The type of saga this inspector handles| Method Detail |
|---|
public static <T extends AbstractAnnotatedSaga> SagaMethodMessageHandlerInspector<T> getInstance(Class<T> sagaType)
sagaType. The inspector provides
information about @SagaEventHandler annotated handler methods.
T - The type of Saga to get the inspector forsagaType - The type of Saga to get the inspector for
public SagaMethodMessageHandler getMessageHandler(EventMessage event)
sagaType for the given event. If
no
suitable handler is found, the NoOpHandler is returned, that does nothing when invoked.
event - The Event to investigate the handler for
public Class<T> getSagaType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||