| Package | Description |
|---|---|
| org.axonframework.modelling.command | |
| org.axonframework.modelling.command.inspection | |
| org.axonframework.modelling.command.legacyjpa |
| Modifier and Type | Method and Description |
|---|---|
protected AggregateModel<T> |
AbstractRepository.aggregateModel()
Returns the aggregate model stored by this repository.
|
protected AggregateModel<T> |
AbstractRepository.Builder.buildAggregateModel()
Instantiate the
AggregateModel of generic type T describing the structure of the Aggregate
this Repository will store. |
| Modifier and Type | Method and Description |
|---|---|
AbstractRepository.Builder<T> |
AbstractRepository.Builder.aggregateModel(AggregateModel<T> aggregateModel)
Sets the
AggregateModel of generic type T, describing the structure of the aggregate this
Repository will store. |
AggregateAnnotationCommandHandler.Builder<T> |
AggregateAnnotationCommandHandler.Builder.aggregateModel(AggregateModel<T> aggregateModel)
Sets the
AggregateModel of generic type T, describing the structure of the aggregate the
AnnotationCommandHandlerAdapter will handle. |
LockingRepository.Builder<T> |
LockingRepository.Builder.aggregateModel(AggregateModel<T> aggregateModel) |
GenericJpaRepository.Builder<T> |
GenericJpaRepository.Builder.aggregateModel(AggregateModel<T> aggregateModel) |
| Modifier and Type | Field and Description |
|---|---|
protected AggregateModel<T> |
AnnotatedAggregate.inspector |
| Modifier and Type | Method and Description |
|---|---|
default <T> AggregateModel<T> |
AggregateMetaModelFactory.createModel(Class<? extends T> aggregateType)
Create an Aggregate meta model for the given
aggregateType. |
<T> AggregateModel<T> |
AggregateMetaModelFactory.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> |
AnnotatedAggregateMetaModelFactory.inspectAggregate(Class<T> aggregateType)
Shorthand to create a factory instance and inspect the model for the given
aggregateType. |
static <T> AggregateModel<T> |
AnnotatedAggregateMetaModelFactory.inspectAggregate(Class<T> aggregateType,
org.axonframework.messaging.annotation.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> |
AnnotatedAggregateMetaModelFactory.inspectAggregate(Class<T> aggregateType,
org.axonframework.messaging.annotation.ParameterResolverFactory parameterResolverFactory,
org.axonframework.messaging.annotation.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> |
AnnotatedAggregateMetaModelFactory.inspectAggregate(Class<T> aggregateType,
org.axonframework.messaging.annotation.ParameterResolverFactory parameterResolverFactory,
org.axonframework.messaging.annotation.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> |
AnnotatedAggregateMetaModelFactory.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. |
| Modifier and Type | Method and Description |
|---|---|
static <T> AnnotatedAggregate<T> |
AnnotatedAggregate.initialize(Callable<T> aggregateFactory,
AggregateModel<T> aggregateModel,
org.axonframework.eventhandling.EventBus eventBus)
Initialize an aggregate created by the given
aggregateFactory which is described in the given aggregateModel. |
static <T> AnnotatedAggregate<T> |
AnnotatedAggregate.initialize(Callable<T> aggregateFactory,
AggregateModel<T> aggregateModel,
org.axonframework.eventhandling.EventBus eventBus,
boolean generateSequences)
Initialize an aggregate created by the given
aggregateFactory which is described in the given aggregateModel. |
static <T> AnnotatedAggregate<T> |
AnnotatedAggregate.initialize(Callable<T> aggregateFactory,
AggregateModel<T> aggregateModel,
org.axonframework.eventhandling.EventBus eventBus,
RepositoryProvider repositoryProvider)
Initialize an aggregate created by the given
aggregateFactory which is described in the given aggregateModel. |
static <T> AnnotatedAggregate<T> |
AnnotatedAggregate.initialize(Callable<T> aggregateFactory,
AggregateModel<T> aggregateModel,
org.axonframework.eventhandling.EventBus eventBus,
RepositoryProvider repositoryProvider,
boolean generateSequences)
Initialize an aggregate created by the given
aggregateFactory which is described in the given aggregateModel. |
static <T> AnnotatedAggregate<T> |
AnnotatedAggregate.initialize(T aggregateRoot,
AggregateModel<T> aggregateModel,
org.axonframework.eventhandling.EventBus eventBus)
Initialize an aggregate with the given
aggregateRoot which is described in the given aggregateModel. |
static <T> AnnotatedAggregate<T> |
AnnotatedAggregate.initialize(T aggregateRoot,
AggregateModel<T> aggregateModel,
org.axonframework.eventhandling.EventBus eventBus,
RepositoryProvider repositoryProvider)
Initialize an aggregate with the given
aggregateRoot which is described in the given aggregateModel. |
| Constructor and Description |
|---|
AnnotatedAggregate(AggregateModel<T> inspector,
org.axonframework.eventhandling.EventBus eventBus)
Initialize an Aggregate instance for the given
aggregateRoot, described by the given aggregateModel that will publish events to the given eventBus. |
AnnotatedAggregate(AggregateModel<T> inspector,
org.axonframework.eventhandling.EventBus eventBus,
RepositoryProvider repositoryProvider)
Initialize an Aggregate instance for the given
aggregateRoot, described by the given aggregateModel that will publish events to the given eventBus. |
AnnotatedAggregate(T aggregateRoot,
AggregateModel<T> model,
org.axonframework.eventhandling.EventBus eventBus)
Initialize an Aggregate instance for the given
aggregateRoot, described by the given aggregateModel that will publish events to the given eventBus. |
AnnotatedAggregate(T aggregateRoot,
AggregateModel<T> model,
org.axonframework.eventhandling.EventBus eventBus,
RepositoryProvider repositoryProvider)
Initialize an Aggregate instance for the given
aggregateRoot, described by the given aggregateModel that will publish events to the given eventBus. |
| Modifier and Type | Method and Description |
|---|---|
GenericJpaRepository.Builder<T> |
GenericJpaRepository.Builder.aggregateModel(AggregateModel<T> aggregateModel) |
Copyright © 2010–2024. All rights reserved.