Uses of Interface
org.axonframework.modelling.command.Aggregate
Packages that use Aggregate
Package
Description
Classes related to event sourcing.
-
Uses of Aggregate in org.axonframework.eventsourcing
Classes in org.axonframework.eventsourcing that implement AggregateModifier and TypeClassDescriptionclassImplementation of anAggregatethat is sourced from events that have been published by the aggregate.Methods in org.axonframework.eventsourcing with parameters of type AggregateModifier and TypeMethodDescriptionprotected voidCachingEventSourcingRepository.validateOnLoad(Aggregate<T> aggregate, Long expectedVersion) protected voidEventSourcingRepository.validateOnLoad(Aggregate<T> aggregate, Long expectedVersion) -
Uses of Aggregate in org.axonframework.modelling.command
Classes in org.axonframework.modelling.command with type parameters of type AggregateModifier and TypeClassDescriptionclassAbstractRepository<T,A extends Aggregate<T>> Abstract implementation of theRepositorythat takes care of the dispatching of events when an aggregate is persisted.classLockAwareAggregate<AR,A extends Aggregate<AR>> Aggregate implementation that provides access to the lock held by the aggregate while a command is handled.classLockingRepository<T,A extends Aggregate<T>> Implementation of the Repository interface that takes provides a locking mechanism to prevent concurrent modifications of persisted aggregates.Classes in org.axonframework.modelling.command that implement AggregateModifier and TypeClassDescriptionclassLockAwareAggregate<AR,A extends Aggregate<AR>> Aggregate implementation that provides access to the lock held by the aggregate while a command is handled.Methods in org.axonframework.modelling.command that return AggregateModifier and TypeMethodDescriptionstatic <T> Aggregate<T> Creates a new aggregate instance.protected abstract <T> Aggregate<T> AggregateLifecycle.doCreateNew(Class<T> aggregateType, Callable<T> factoryMethod) Creates a new aggregate instance.Load the aggregate with the given unique identifier.Load the aggregate with the given unique identifier.AbstractRepository.loadOrCreate(String aggregateIdentifier, Callable<T> factoryMethod) Repository.loadOrCreate(String aggregateIdentifier, Callable<T> factoryMethod) Loads an aggregate from the repository.Repository.newInstance(Callable<T> factoryMethod) Creates a new managed instance for the aggregate, using the givenfactoryMethodto instantiate the aggregate's root.Creates a new managed instance for the aggregate, using the givenfactoryMethodto instantiate the aggregate's root, and then applying theinitMethodconsumer to it to perform additional initialization.Methods in org.axonframework.modelling.command with parameters of type AggregateModifier and TypeMethodDescriptionprotected ObjectAggregateAnnotationCommandHandler.resolveReturnValue(CommandMessage<?> command, Aggregate<T> createdAggregate) Resolves the value to return when the givencommandhas created the givenaggregate.protected voidAbstractRepository.validateOnLoad(Aggregate<T> aggregate, Long expectedVersion) Checks the aggregate for concurrent changes.Method parameters in org.axonframework.modelling.command with type arguments of type AggregateModifier and TypeMethodDescriptionCreates a new managed instance for the aggregate, using the givenfactoryMethodto instantiate the aggregate's root, and then applying theinitMethodconsumer to it to perform additional initialization. -
Uses of Aggregate in org.axonframework.modelling.command.inspection
Classes in org.axonframework.modelling.command.inspection that implement AggregateModifier and TypeClassDescriptionclassImplementation of theAggregateinterface that allows for an aggregate root to be a POJO with annotations on its Command and Event Handler methods.Methods in org.axonframework.modelling.command.inspection that return AggregateModifier and TypeMethodDescriptionprotected <R> Aggregate<R> AnnotatedAggregate.doCreateNew(Class<R> aggregateType, Callable<R> factoryMethod) -
Uses of Aggregate in org.axonframework.test.aggregate
Methods in org.axonframework.test.aggregate that return AggregateModifier and TypeMethodDescriptionprotected <T> Aggregate<T> StubAggregateLifecycle.doCreateNew(Class<T> aggregateType, Callable<T> factoryMethod) Constructor parameters in org.axonframework.test.aggregate with type arguments of type AggregateModifierConstructorDescriptionResultValidatorImpl(List<EventMessage<?>> publishedEvents, FieldFilter fieldFilter, Supplier<Aggregate<T>> aggregateState, StubDeadlineManager stubDeadlineManager) Initialize the ResultValidatorImpl with the givenstoredEventsandpublishedEvents.