DeciderAndAggregateTypeConfigurator

constructor(eventStore: ConfigurableEventStore<*>, commandBus: CommandBus, aggregateTypeConfigurations: List<AggregateTypeConfiguration>, deciders: List<Decider<*, *>>)

Parameters

eventStore

The EventStore that can fetch and persist events

commandBus

The CommandBus where all Decider's in the deciders list will be registered as CommandHandler

aggregateTypeConfigurations

The AggregateTypeConfiguration's - these are registered with the EventStore to ensure that the EventStore is configured to handle event streams related to the AggregateType's The AggregateTypeConfiguration.deciderSupportsAggregateTypeChecker is used to determine which AggregateType each Decider works with

deciders

All the Decider's that should be as CommandHandler's on the commandBus