Class AnnotationSagaMetaModelFactory
java.lang.Object
org.axonframework.modelling.saga.metamodel.AnnotationSagaMetaModelFactory
- All Implemented Interfaces:
SagaMetaModelFactory
Default implementation of a
SagaMetaModelFactory.-
Constructor Summary
ConstructorsConstructorDescriptionInitializes aAnnotationSagaMetaModelFactorywithClasspathParameterResolverFactoryandClasspathHandlerDefinition.AnnotationSagaMetaModelFactory(ParameterResolverFactory parameterResolverFactory) Initializes aAnnotationSagaMetaModelFactorywith givenparameterResolverFactoryandClasspathHandlerDefinition.AnnotationSagaMetaModelFactory(ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) Initializes aAnnotationSagaMetaModelFactorywith givenparameterResolverFactoryand givenhandlerDefinition. -
Method Summary
Modifier and TypeMethodDescriptionchainedInterceptor(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.
-
Constructor Details
-
AnnotationSagaMetaModelFactory
public AnnotationSagaMetaModelFactory()Initializes aAnnotationSagaMetaModelFactorywithClasspathParameterResolverFactoryandClasspathHandlerDefinition. -
AnnotationSagaMetaModelFactory
Initializes aAnnotationSagaMetaModelFactorywith givenparameterResolverFactoryandClasspathHandlerDefinition.- Parameters:
parameterResolverFactory- factory for event handler parameter resolvers
-
AnnotationSagaMetaModelFactory
public AnnotationSagaMetaModelFactory(ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) Initializes aAnnotationSagaMetaModelFactorywith givenparameterResolverFactoryand givenhandlerDefinition.- Parameters:
parameterResolverFactory- factory for event handler parameter resolvershandlerDefinition- the handler definition used to create concrete handlers
-
-
Method Details
-
modelOf
Description copied from interface:SagaMetaModelFactoryCreate a saga meta model for the givensagaType. The meta model will inspect the capabilities and characteristics of the given type.- Specified by:
modelOfin interfaceSagaMetaModelFactory- 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
Description copied from interface:SagaMetaModelFactoryReturns 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.- Specified by:
chainedInterceptorin interfaceSagaMetaModelFactory- Type Parameters:
T- The saga type- Parameters:
sagaType- The saga class to be inspected- Returns:
- an interceptor chain that invokes the interceptor handlers
-