Uses of Class
org.axonframework.config.AggregateConfigurer
Packages that use AggregateConfigurer
-
Uses of AggregateConfigurer in org.axonframework.config
Methods in org.axonframework.config that return AggregateConfigurerModifier and TypeMethodDescriptionAggregateConfigurer.configureAggregateFactory(Function<Configuration, AggregateFactory<A>> aggregateFactoryBuilder) Defines the factory to use to create new Aggregates instances of the type under configuration.AggregateConfigurer.configureCache(Function<Configuration, Cache> cache) Configures the Cache to use for the repository created for this Aggregate type.AggregateConfigurer.configureCommandHandler(Function<Configuration, AggregateAnnotationCommandHandler<A>> aggregateCommandHandlerBuilder) Defines the AggregateAnnotationCommandHandler instance to use.AggregateConfigurer.configureCommandTargetResolver(Function<Configuration, CommandTargetResolver> commandTargetResolverBuilder) Defines the CommandTargetResolver to use for the Aggregate type under configuration.AggregateConfigurer.configureCreationPolicyAggregateFactory(Function<Configuration, CreationPolicyAggregateFactory<A>> creationPolicyAggregateFactoryBuilder) Defines the factory to create new aggregate instances of the type under configuration when initializing those instances from non-constructor command handlers annotated withCreationPolicy.AggregateConfigurer.configureEventStreamFilter(Function<Configuration, Predicate<? super DomainEventMessage<?>>> filterBuilder) Configures an event stream filter for the EventSourcingRepository for the Aggregate type under configuration.AggregateConfigurer.configureFilterEventsByType(Function<Configuration, Boolean> filterConfigurationPredicate) Configures a function that determines whether or not the EventSourcingRepository for the Aggregate type under configuration should filter out events with non-matching types.AggregateConfigurer.configureLockFactory(Function<Configuration, LockFactory> lockFactory) Defines theLockFactoryto use in theRepositoryfor the aggregate under configuration.AggregateConfigurer.configureRepository(Function<Configuration, Repository<A>> repositoryBuilder) Defines the repository to use to load and store Aggregates of this type.AggregateConfigurer.configureSnapshotFilter(Function<Configuration, SnapshotFilter> snapshotFilter) Configure aSnapshotFilterfor the Aggregate type under configuration.AggregateConfigurer.configureSnapshotTrigger(Function<Configuration, SnapshotTriggerDefinition> snapshotTriggerDefinition) Configures snapshotting for the Aggregate type under configuration.AggregateConfigurer.configureWeakReferenceCache()Configures a WeakReferenceCache to be used for the repository created for this Aggregate type.static <A> AggregateConfigurer<A> AggregateConfigurer.defaultConfiguration(Class<A> aggregateType) Creates a default Configuration for an aggregate of the givenaggregateType.static <A> AggregateConfigurer<A> AggregateConfigurer.jpaMappedConfiguration(Class<A> aggregateType) Creates a Configuration for an aggregate of givenaggregateType, which is mapped to a relational database using an EntityManager obtained from the main configuration.static <A> AggregateConfigurer<A> AggregateConfigurer.jpaMappedConfiguration(Class<A> aggregateType, EntityManagerProvider entityManagerProvider) Creates a Configuration for an aggregate of givenaggregateType, which is mapped to a relational database using an EntityManager provided by givenentityManagerProvider.final AggregateConfigurer<A> AggregateConfigurer.withSubtypes(Class<? extends A>... subtypes) Registers subtypes of this aggregate to support aggregate polymorphism.AggregateConfigurer.withSubtypes(Collection<Class<? extends A>> subtypes) Registers subtypes of this aggregate to support aggregate polymorphism.