Package dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state
-
Class Summary Class Description AggregateRootWithState<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.AggregateState<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.