Class AggregateState<ID,EVENT_TYPE,AGGREGATE_TYPE extends AggregateRoot<ID,EVENT_TYPE,AGGREGATE_TYPE>>
- java.lang.Object
-
- dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateState<ID,EVENT_TYPE,AGGREGATE_TYPE>
-
- Type Parameters:
ID- the type of idEVENT_TYPE- the type of eventAGGREGATE_TYPE- the aggregate root type
public abstract class AggregateState<ID,EVENT_TYPE,AGGREGATE_TYPE extends AggregateRoot<ID,EVENT_TYPE,AGGREGATE_TYPE>> extends Object
Aggregate state object associated with a givenAggregateRootinstance (seegetAggregate())
Example:{@code public class OrderState extends AggregateState{ private Map productAndQuantity; private boolean accepted;
-
-
Constructor Summary
Constructors Constructor Description AggregateState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AGGREGATE_TYPEgetAggregate()Get access to the aggregate instance this state object is associated with
-
-
-
Method Detail
-
getAggregate
protected final AGGREGATE_TYPE getAggregate()
Get access to the aggregate instance this state object is associated with- Returns:
- the aggregate instance this state object is associated with
-
-