Interface SagaMetaModelFactory
- All Known Implementing Classes:
AnnotationSagaMetaModelFactory
public interface SagaMetaModelFactory
Interface of a factory for a
SagaModel for any given saga type.-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> MessageHandlerInterceptorMemberChain<T> chainedInterceptor(Class<T> sagaType) Returns an Interceptor Chain of annotated interceptor methods for the givensagaType.<T> SagaModel<T> Create a saga meta model for the givensagaType.
-
Method Details
-
modelOf
Create a saga meta model for the givensagaType. The meta model will inspect the capabilities and characteristics of the given type.- Type Parameters:
T- The saga type- Parameters:
sagaType- The saga class to be inspected- Returns:
- Model describing the capabilities and characteristics of the inspected saga class
-
chainedInterceptor
Returns an Interceptor Chain of annotated interceptor methods for the givensagaType. The given chain will invoke all relevant interceptors in an order defined by the handler definition.- Type Parameters:
T- The saga type- Parameters:
sagaType- The saga class to be inspected- Returns:
- an interceptor chain that invokes the interceptor handlers
-