|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.eventsourcing.CompositeEventStreamDecorator
public class CompositeEventStreamDecorator
EventStreamDecorator implementation that delegates to several other decorator instances.
| Constructor Summary | |
|---|---|
CompositeEventStreamDecorator(Collection<EventStreamDecorator> eventStreamDecorators)
Initialize the decorator, delegating to the given eventStreamDecorators. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeEventStreamDecorator(Collection<EventStreamDecorator> eventStreamDecorators)
eventStreamDecorators. The decorators are
invoked in the iterator's order on decorateForRead(String, Object, org.axonframework.domain.DomainEventStream),
and in revese order on decorateForAppend(String, EventSourcedAggregateRoot,
org.axonframework.domain.DomainEventStream).
eventStreamDecorators - The decorators to decorate Event Streams with| Method Detail |
|---|
public DomainEventStream decorateForRead(String aggregateType,
Object aggregateIdentifier,
DomainEventStream eventStream)
EventStreamDecoratoreventStream and pass
that to the chain.
decorateForRead in interface EventStreamDecoratoraggregateType - 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
public DomainEventStream decorateForAppend(String aggregateType,
EventSourcedAggregateRoot aggregate,
DomainEventStream eventStream)
EventStreamDecoratoreventStream and pass
that to the chain.
decorateForAppend in interface EventStreamDecoratoraggregateType - 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 | |||||||||