public class AnnotatedAggregateMetaModelFactory extends Object implements AggregateMetaModelFactory
Constructor and Description |
---|
AnnotatedAggregateMetaModelFactory()
Initializes an instance which uses the default, classpath based, ParameterResolverFactory to detect parameters
for annotated handlers.
|
AnnotatedAggregateMetaModelFactory(ParameterResolverFactory parameterResolverFactory)
Initializes an instance which uses the given
parameterResolverFactory to detect parameters for annotated
handlers. |
AnnotatedAggregateMetaModelFactory(ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Initializes an instance which uses the given
parameterResolverFactory to detect parameters for annotated
handlers and handlerDefinition to create concrete handlers. |
Modifier and Type | Method and Description |
---|---|
<T> org.axonframework.modelling.command.inspection.AnnotatedAggregateMetaModelFactory.AnnotatedAggregateModel<T> |
createModel(Class<? extends T> aggregateType,
Set<Class<? extends T>> subtypes)
Create an Aggregate meta model for the given
aggregateType and provided subtypes . |
static <T> AggregateModel<T> |
inspectAggregate(Class<T> aggregateType)
Shorthand to create a factory instance and inspect the model for the given
aggregateType . |
static <T> AggregateModel<T> |
inspectAggregate(Class<T> aggregateType,
ParameterResolverFactory parameterResolverFactory)
Shorthand to create a factory instance and inspect the model for the given
aggregateType , using given
parameterResolverFactory to resolve parameter values for annotated handlers. |
static <T> AggregateModel<T> |
inspectAggregate(Class<T> aggregateType,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Shorthand to create a factory instance and inspect the model for the given
aggregateType , using given
parameterResolverFactory to resolve parameter values for annotated handlers and handlerDefinition
to create concrete handlers. |
static <T> AggregateModel<T> |
inspectAggregate(Class<T> aggregateType,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition,
Set<Class<? extends T>> subtypes)
Shorthand to create a factory instance and inspect the model for the given
aggregateType and its subytpes , using given parameterResolverFactory to resolve parameter values for annotated handlers and
handlerDefinition to create concrete handlers. |
static <T> AggregateModel<T> |
inspectAggregate(Class<T> aggregateType,
Set<Class<? extends T>> subtypes)
Shorthand to create a factory instance and inspect the model for the given
aggregateType and its subtypes . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createModel
public AnnotatedAggregateMetaModelFactory()
public AnnotatedAggregateMetaModelFactory(ParameterResolverFactory parameterResolverFactory)
parameterResolverFactory
to detect parameters for annotated
handlers.parameterResolverFactory
- to resolve parameter values of annotated handlers withpublic AnnotatedAggregateMetaModelFactory(ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition)
parameterResolverFactory
to detect parameters for annotated
handlers and handlerDefinition
to create concrete handlers.parameterResolverFactory
- to resolve parameter values of annotated handlers withhandlerDefinition
- The handler definition used to create concrete handlerspublic static <T> AggregateModel<T> inspectAggregate(Class<T> aggregateType)
aggregateType
.T
- The type of aggregate described in the modelaggregateType
- The class of the aggregate to create the model forpublic static <T> AggregateModel<T> inspectAggregate(Class<T> aggregateType, Set<Class<? extends T>> subtypes)
aggregateType
and its subtypes
.T
- The type of aggregate described in the modelaggregateType
- The class of the aggregate to create the model forsubtypes
- Subtypes of this aggregate classpublic static <T> AggregateModel<T> inspectAggregate(Class<T> aggregateType, ParameterResolverFactory parameterResolverFactory)
aggregateType
, using given
parameterResolverFactory
to resolve parameter values for annotated handlers.T
- the type of aggregate described in the modelaggregateType
- the class of the aggregate to create the model forparameterResolverFactory
- to resolve parameter values of annotated handlers withpublic static <T> AggregateModel<T> inspectAggregate(Class<T> aggregateType, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition)
aggregateType
, using given
parameterResolverFactory
to resolve parameter values for annotated handlers and handlerDefinition
to create concrete handlers.T
- The type of aggregate described in the modelaggregateType
- The class of the aggregate to create the model forparameterResolverFactory
- to resolve parameter values of annotated handlers withhandlerDefinition
- The handler definition used to create concrete handlerspublic static <T> AggregateModel<T> inspectAggregate(Class<T> aggregateType, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition, Set<Class<? extends T>> subtypes)
aggregateType
and its subytpes
, using given parameterResolverFactory
to resolve parameter values for annotated handlers and
handlerDefinition
to create concrete handlers.T
- The type of aggregate described in the modelaggregateType
- The class of the aggregate to create the model forparameterResolverFactory
- to resolve parameter values of annotated handlers withhandlerDefinition
- The handler definition used to create concrete handlerssubtypes
- Subtypes of this aggregate classpublic <T> org.axonframework.modelling.command.inspection.AnnotatedAggregateMetaModelFactory.AnnotatedAggregateModel<T> createModel(Class<? extends T> aggregateType, Set<Class<? extends T>> subtypes)
AggregateMetaModelFactory
aggregateType
and provided subtypes
. The meta model
will inspect the capabilities and characteristics of the given aggregateType
and its subtypes
.createModel
in interface AggregateMetaModelFactory
T
- The Aggregate typeaggregateType
- The Aggregate class to be inspectedsubtypes
- Subtypes of this Aggregate classCopyright © 2010–2023. All rights reserved.