Class AnnotationSagaMetaModelFactory

java.lang.Object
org.axonframework.modelling.saga.metamodel.AnnotationSagaMetaModelFactory
All Implemented Interfaces:
SagaMetaModelFactory

public class AnnotationSagaMetaModelFactory extends Object implements SagaMetaModelFactory
Default implementation of a SagaMetaModelFactory.
  • Constructor Details

  • Method Details

    • modelOf

      public <T> SagaModel<T> modelOf(Class<T> sagaType)
      Description copied from interface: SagaMetaModelFactory
      Create a saga meta model for the given sagaType. The meta model will inspect the capabilities and characteristics of the given type.
      Specified by:
      modelOf in interface SagaMetaModelFactory
      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

      public <T> MessageHandlerInterceptorMemberChain<T> chainedInterceptor(Class<T> sagaType)
      Description copied from interface: SagaMetaModelFactory
      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.
      Specified by:
      chainedInterceptor in interface SagaMetaModelFactory
      Type Parameters:
      T - The saga type
      Parameters:
      sagaType - The saga class to be inspected
      Returns:
      an interceptor chain that invokes the interceptor handlers