class Synapse::EventSourcing::EventStreamDecorator

Represents a mechanism for decorating event streams when aggregates are read or appended @abstract

Public Instance Methods

decorate_for_append(type_identifier, aggregate, stream) click to toggle source

Decorates an event stream when it is appended to the event store

@param [String] type_identifier @param [AggregateRoot] aggregate @param [DomainEventStream] stream @return [DomainEventStream]

# File lib/synapse/event_sourcing/stream_decorator.rb, line 22
def decorate_for_append(type_identifier, aggregate, stream)
  stream
end
decorate_for_read(type_identifier, aggregate_id, stream) click to toggle source

Decorates an event stream when it is read from the event store

@param [String] type_identifier @param [Object] aggregate_id @param [DomainEventStream] stream @return [DomainEventStream]

# File lib/synapse/event_sourcing/stream_decorator.rb, line 12
def decorate_for_read(type_identifier, aggregate_id, stream)
  stream
end