Interface SagaMetaModelFactory

All Known Implementing Classes:
AnnotationSagaMetaModelFactory

public interface SagaMetaModelFactory
Interface of a factory for a SagaModel for any given saga type.
  • Method Details

    • modelOf

      <T> SagaModel<T> modelOf(Class<T> sagaType)
      Create a saga meta model for the given sagaType. 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

      default <T> MessageHandlerInterceptorMemberChain<T> chainedInterceptor(Class<T> sagaType)
      Returns an Interceptor Chain of annotated interceptor methods for the given sagaType. 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