class
Movie::Persistence::EventProjection
- Movie::Persistence::EventProjection
- Reference
- Object
Overview
Typed manifest dispatch for one logical projection. The erased handler stored in the registry decodes directly into the registered event type.
Defined in:
movie/persistence/projection.crConstructors
- .for(type : T.class, name : String) : self forall T
- .new(name : String, entity_type : String | Nil = nil)
Instance Method Summary
- #entity_type : String | Nil
- #handler_for(event : EventEnvelope) : ProjectionHandler
- #id : ProjectionId
- #ignore(type : E.class, manifest : String = type.name) : self forall E
- #ignore(manifest : String) : self
- #name : String
- #on(type : E.class, manifest : String = type.name, &handler : E, EventEnvelope, ProjectionTransaction -> ) : self forall E
Constructor Detail
Instance Method Detail
def on(type : E.class, manifest : String = type.name, &handler : E, EventEnvelope, ProjectionTransaction -> ) : self forall E
#