Decider And Aggregate Type Configurator
constructor(eventStore: ConfigurableEventStore<*>, commandBus: CommandBus, aggregateTypeConfigurations: List<AggregateTypeConfiguration>, deciders: List<Decider<*, *>>)
Parameters
event Store
The EventStore that can fetch and persist events
command Bus
The CommandBus where all Decider's in the deciders list will be registered as CommandHandler
aggregate Type Configurations
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