|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventStreamDecorator
Interface describing a class that can decorates DomainEventStreams when events for aggregates are read or appended.
| Method Summary | |
|---|---|
DomainEventStream |
decorateForAppend(String aggregateType,
EventSourcedAggregateRoot aggregate,
DomainEventStream eventStream)
Called when an event stream is appended to the event store. |
DomainEventStream |
decorateForRead(String aggregateType,
Object aggregateIdentifier,
DomainEventStream eventStream)
Called when an event stream is read from the event store. |
| Method Detail |
|---|
DomainEventStream decorateForRead(String aggregateType,
Object aggregateIdentifier,
DomainEventStream eventStream)
eventStream and pass
that to the chain.
aggregateType - The type of aggregate events are being read foraggregateIdentifier - The identifier of the aggregate events are loaded foreventStream - The eventStream containing the events to append to the event store
DomainEventStream decorateForAppend(String aggregateType,
EventSourcedAggregateRoot aggregate,
DomainEventStream eventStream)
eventStream and pass
that to the chain.
aggregateType - The type of aggregate events are being appended foraggregate - The aggregate for which the events are being storedeventStream - The eventStream containing the events to append to the event store
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||