Class AggregateState<ID,​EVENT_TYPE,​AGGREGATE_TYPE extends AggregateRoot<ID,​EVENT_TYPE,​AGGREGATE_TYPE>>

  • Type Parameters:
    ID - the type of id
    EVENT_TYPE - the type of event
    AGGREGATE_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 given AggregateRoot instance (see getAggregate())
    Example:
    {@code
     public class OrderState extends AggregateState {
         private Map productAndQuantity;
         private boolean                 accepted;
    • Constructor Detail

      • AggregateState

        public AggregateState()
    • 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