T - The type of saga targeted by this inspectorpublic class SagaMethodMessageHandlerInspector<T extends AbstractAnnotatedSaga> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
SagaMethodMessageHandlerInspector(Class<T> sagaType)
Initialize the inspector to handle events for the given
sagaType. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends AbstractAnnotatedSaga> |
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.
|
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 forpublic 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 forCopyright © 2010-2013. All Rights Reserved.