I - The type of the identifier of this aggregatepublic interface EventSourcedAggregateRoot<I> extends AggregateRoot<I>
DomainEventStream. Aggregates that are
initialized using Event Sourcing should implement this interface.EventSourcingRepository| Modifier and Type | Method and Description |
|---|---|
void |
initializeState(DomainEventStream domainEventStream)
Initialize the state of this aggregate using the events in the provided
DomainEventStream. |
addEventRegistrationCallback, commitEvents, getIdentifier, getUncommittedEventCount, getUncommittedEvents, getVersion, isDeletedvoid initializeState(DomainEventStream domainEventStream)
DomainEventStream. A call to this method on an aggregate that has already been
initialized will result in an IllegalStateException.domainEventStream - the event stream containing the events that describe the state changes of this
aggregateIllegalStateException - if this aggregate was already initialized.Copyright © 2010-2014. All Rights Reserved.