Uses of Class
dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.Event
-
-
Uses of Event in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic
Classes in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic with type parameters of type Event Modifier and Type Class Description classAggregateRoot<ID,EVENT_TYPE extends Event<ID>,AGGREGATE_TYPE extends AggregateRoot<ID,EVENT_TYPE,AGGREGATE_TYPE>>A specialized and opinionated mutableAggregatedesign
ThisAggregateRootis designed to work with Class based Event's that inherit fromEvent.
This design is deliberate and will manage a lot of things for you as a developer at the cost of some flexibility.Methods in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic with parameters of type Event Modifier and Type Method Description protected voidAggregateRoot. applyEventToTheAggregateState(Event<ID> event)Apply the event to the aggregate instance to reflect the event as a state change to the aggregate
The default implementation will automatically call any (private) methods annotated withEventHandler -
Uses of Event in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state
Classes in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state with type parameters of type Event Modifier and Type Class Description classAggregateRootWithState<ID,EVENT_TYPE extends Event<ID>,STATE extends AggregateState<ID,EVENT_TYPE>,AGGREGATE_TYPE extends AggregateRootWithState<ID,EVENT_TYPE,STATE,AGGREGATE_TYPE>>Variant of theAggregateRootpattern where the aggregate's state and allEventHandlerannotated methods are placed within the concreteAggregateStateobject.
When theAggregateRootWithStateis combined withAggregateState, then theAggregateRootWithStatewill contain the command methods and theAggregateStatecontains the state fields and theEventHandlerannotated methods.classAggregateState<ID,EVENT_TYPE extends Event<ID>>Base class for the state object associated withAggregateRootWithState.
When this is combined with theAggregateRootWithStatewhen theAggregateRootWithStatewill contain the command methods and theAggregateStatecontains the state fields and theEventHandlerannotated methods.Methods in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state with parameters of type Event Modifier and Type Method Description protected voidAggregateState. applyEventToTheAggregate(Event<ID> event)Apply the event to the aggregate instance to reflect the event as a state change to the aggregate
The default implementation will automatically call any (private) methods annotated withEventHandler
-