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)
Create an Aggregate meta model for the given
aggregateType. |
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. |
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, 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 <T> org.axonframework.modelling.command.inspection.AnnotatedAggregateMetaModelFactory.AnnotatedAggregateModel<T> createModel(Class<? extends T> aggregateType)
AggregateMetaModelFactoryaggregateType. The meta model will inspect the capabilities
and characteristics of the given type.createModel in interface AggregateMetaModelFactoryT - The Aggregate typeaggregateType - The Aggregate class to be inspectedCopyright © 2010–2018. All rights reserved.