Uses of Interface
org.axonframework.modelling.command.inspection.AggregateModel
Packages that use AggregateModel
Package
Description
Classes related to event sourcing.
-
Uses of AggregateModel in org.axonframework.eventsourcing
Methods in org.axonframework.eventsourcing that return AggregateModelModifier and TypeMethodDescriptionprotected AggregateModel<T> AbstractAggregateFactory.aggregateModel()Gets the aggregate model.Methods in org.axonframework.eventsourcing with parameters of type AggregateModelModifier and TypeMethodDescriptionEventSourcingRepository.Builder.aggregateModel(AggregateModel<T> aggregateModel) static <T> EventSourcedAggregate<T> EventSourcedAggregate.initialize(Callable<T> aggregateFactory, AggregateModel<T> inspector, EventBus eventBus, SnapshotTrigger snapshotTrigger) Initializes an EventSourcedAggregate instance using the givenaggregateFactory, based on the giveninspector, which publishes events to the giveneventBusand stores events in the giveneventStore.static <T> EventSourcedAggregate<T> EventSourcedAggregate.initialize(Callable<T> aggregateFactory, AggregateModel<T> inspector, EventBus eventBus, RepositoryProvider repositoryProvider, SnapshotTrigger snapshotTrigger) Initializes an EventSourcedAggregate instance using the givenaggregateFactory, based on the giveninspector, which publishes events to the giveneventBusand stores events in the giveneventStore.static <T> EventSourcedAggregate<T> EventSourcedAggregate.initialize(T aggregateRoot, AggregateModel<T> inspector, EventBus eventBus, SnapshotTrigger snapshotTrigger) Initializes an EventSourcedAggregate instance for the givenaggregateRoot, based on the giveninspector, which publishes events to the giveneventBus.static <T> EventSourcedAggregate<T> EventSourcedAggregate.initialize(T aggregateRoot, AggregateModel<T> inspector, EventBus eventBus, RepositoryProvider repositoryProvider, SnapshotTrigger snapshotTrigger) Initializes an EventSourcedAggregate instance for the givenaggregateRoot, based on the giveninspector, which publishes events to the giveneventBus.static <T> EventSourcedAggregate<T> EventSourcedAggregate.reconstruct(T aggregateRoot, AggregateModel<T> model, long seqNo, boolean isDeleted, EventBus eventBus, SnapshotTrigger snapshotTrigger) Reconstructs an EventSourcedAggregate instance with givenaggregateRoot.static <T> EventSourcedAggregate<T> EventSourcedAggregate.reconstruct(T aggregateRoot, AggregateModel<T> model, long seqNo, boolean isDeleted, EventBus eventBus, RepositoryProvider repositoryProvider, SnapshotTrigger snapshotTrigger) Reconstructs an EventSourcedAggregate instance with givenaggregateRoot.AggregateCacheEntry.recreateAggregate(AggregateModel<T> model, EventStore eventStore, SnapshotTriggerDefinition snapshotTriggerDefinition) AggregateCacheEntry.recreateAggregate(AggregateModel<T> model, EventStore eventStore, RepositoryProvider repositoryProvider, SnapshotTriggerDefinition snapshotTriggerDefinition) Constructors in org.axonframework.eventsourcing with parameters of type AggregateModelModifierConstructorDescriptionprotectedAbstractAggregateFactory(AggregateModel<T> aggregateModel) Initializes anAggregateFactoryfor the givenaggregateModel.protectedEventSourcedAggregate(AggregateModel<T> model, EventBus eventBus, SnapshotTrigger snapshotTrigger) Creates a new EventSourcedAggregate instance based on the givenmodel, which publishes events to the giveneventBus.protectedEventSourcedAggregate(AggregateModel<T> model, EventBus eventBus, RepositoryProvider repositoryProvider, SnapshotTrigger snapshotTrigger) Creates a new EventSourcedAggregate instance based on the givenmodel, which publishes events to the giveneventBus.protectedEventSourcedAggregate(T aggregateRoot, AggregateModel<T> model, EventBus eventBus, SnapshotTrigger snapshotTrigger) Initializes an Aggregate instance for the givenaggregateRoot, based on the givenmodel, which publishes events to the giveneventBus.protectedEventSourcedAggregate(T aggregateRoot, AggregateModel<T> model, EventBus eventBus, RepositoryProvider repositoryProvider, SnapshotTrigger snapshotTrigger) Initializes an Aggregate instance for the givenaggregateRoot, based on the givenmodel, which publishes events to the giveneventBus.GenericAggregateFactory(AggregateModel<T> aggregateModel) Initialize the AggregateFactory for creating instances of the givenaggregateModel. -
Uses of AggregateModel in org.axonframework.modelling.command
Methods in org.axonframework.modelling.command that return AggregateModelModifier and TypeMethodDescriptionprotected AggregateModel<T> AbstractRepository.aggregateModel()Returns the aggregate model stored by this repository.protected AggregateModel<T> AbstractRepository.Builder.buildAggregateModel()Instantiate theAggregateModelof generic typeTdescribing the structure of the Aggregate thisRepositorywill store.Methods in org.axonframework.modelling.command with parameters of type AggregateModelModifier and TypeMethodDescriptionAbstractRepository.Builder.aggregateModel(AggregateModel<T> aggregateModel) Sets theAggregateModelof generic typeT, describing the structure of the aggregate thisRepositorywill store.AggregateAnnotationCommandHandler.Builder.aggregateModel(AggregateModel<T> aggregateModel) Sets theAggregateModelof generic typeT, describing the structure of the aggregate theAnnotationCommandHandlerAdapterwill handle.GenericJpaRepository.Builder.aggregateModel(AggregateModel<T> aggregateModel) LockingRepository.Builder.aggregateModel(AggregateModel<T> aggregateModel) -
Uses of AggregateModel in org.axonframework.modelling.command.inspection
Fields in org.axonframework.modelling.command.inspection declared as AggregateModelMethods in org.axonframework.modelling.command.inspection that return AggregateModelModifier and TypeMethodDescriptiondefault <T> AggregateModel<T> AggregateMetaModelFactory.createModel(Class<? extends T> aggregateType) Create an Aggregate meta model for the givenaggregateType.<T> AggregateModel<T> AggregateMetaModelFactory.createModel(Class<? extends T> aggregateType, Set<Class<? extends T>> subtypes) Create an Aggregate meta model for the givenaggregateTypeand providedsubtypes.static <T> AggregateModel<T> AnnotatedAggregateMetaModelFactory.inspectAggregate(Class<T> aggregateType) Shorthand to create a factory instance and inspect the model for the givenaggregateType.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 givenaggregateTypeand itssubtypes.static <T> AggregateModel<T> AnnotatedAggregateMetaModelFactory.inspectAggregate(Class<T> aggregateType, ParameterResolverFactory parameterResolverFactory) Shorthand to create a factory instance and inspect the model for the givenaggregateType, using givenparameterResolverFactoryto resolve parameter values for annotated handlers.static <T> AggregateModel<T> AnnotatedAggregateMetaModelFactory.inspectAggregate(Class<T> aggregateType, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) Shorthand to create a factory instance and inspect the model for the givenaggregateType, using givenparameterResolverFactoryto resolve parameter values for annotated handlers andhandlerDefinitionto create concrete handlers.static <T> AggregateModel<T> AnnotatedAggregateMetaModelFactory.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 givenaggregateTypeand itssubytpes, using givenparameterResolverFactoryto resolve parameter values for annotated handlers andhandlerDefinitionto create concrete handlers.Methods in org.axonframework.modelling.command.inspection with parameters of type AggregateModelModifier and TypeMethodDescriptionstatic <T> AnnotatedAggregate<T> AnnotatedAggregate.initialize(Callable<T> aggregateFactory, AggregateModel<T> aggregateModel, EventBus eventBus) Initialize an aggregate created by the givenaggregateFactorywhich is described in the givenaggregateModel.static <T> AnnotatedAggregate<T> AnnotatedAggregate.initialize(Callable<T> aggregateFactory, AggregateModel<T> aggregateModel, EventBus eventBus, boolean generateSequences) Initialize an aggregate created by the givenaggregateFactorywhich is described in the givenaggregateModel.static <T> AnnotatedAggregate<T> AnnotatedAggregate.initialize(Callable<T> aggregateFactory, AggregateModel<T> aggregateModel, EventBus eventBus, RepositoryProvider repositoryProvider) Initialize an aggregate created by the givenaggregateFactorywhich is described in the givenaggregateModel.static <T> AnnotatedAggregate<T> AnnotatedAggregate.initialize(Callable<T> aggregateFactory, AggregateModel<T> aggregateModel, EventBus eventBus, RepositoryProvider repositoryProvider, boolean generateSequences) Initialize an aggregate created by the givenaggregateFactorywhich is described in the givenaggregateModel.static <T> AnnotatedAggregate<T> AnnotatedAggregate.initialize(T aggregateRoot, AggregateModel<T> aggregateModel, EventBus eventBus) Initialize an aggregate with the givenaggregateRootwhich is described in the givenaggregateModel.static <T> AnnotatedAggregate<T> AnnotatedAggregate.initialize(T aggregateRoot, AggregateModel<T> aggregateModel, EventBus eventBus, RepositoryProvider repositoryProvider) Initialize an aggregate with the givenaggregateRootwhich is described in the givenaggregateModel.Constructors in org.axonframework.modelling.command.inspection with parameters of type AggregateModelModifierConstructorDescriptionprotectedAnnotatedAggregate(AggregateModel<T> inspector, EventBus eventBus) Initialize an Aggregate instance for the givenaggregateRoot, described by the givenaggregateModelthat will publish events to the giveneventBus.protectedAnnotatedAggregate(AggregateModel<T> inspector, EventBus eventBus, RepositoryProvider repositoryProvider) Initialize an Aggregate instance for the givenaggregateRoot, described by the givenaggregateModelthat will publish events to the giveneventBus.protectedAnnotatedAggregate(T aggregateRoot, AggregateModel<T> model, EventBus eventBus) Initialize an Aggregate instance for the givenaggregateRoot, described by the givenaggregateModelthat will publish events to the giveneventBus.protectedAnnotatedAggregate(T aggregateRoot, AggregateModel<T> model, EventBus eventBus, RepositoryProvider repositoryProvider) Initialize an Aggregate instance for the givenaggregateRoot, described by the givenaggregateModelthat will publish events to the giveneventBus. -
Uses of AggregateModel in org.axonframework.modelling.command.legacyjpa
Methods in org.axonframework.modelling.command.legacyjpa with parameters of type AggregateModelModifier and TypeMethodDescriptionGenericJpaRepository.Builder.aggregateModel(AggregateModel<T> aggregateModel)