Sha256: 3f4cb072724cabf675170105c6616aef5a66e69e66fc84731a5691167dda3e2a
Contents?: true
Size: 566 Bytes
Versions: 2
Compression:
Stored size: 566 Bytes
Contents
module EventSourcery module EventProcessing class EventStreamProcessorRegistry def initialize @processors = [] end def register(klass) @processors << klass end def find(processor_name) @processors.find do |processor| processor.processor_name == processor_name end end def by_type(constant) @processors.select do |processor| processor.included_modules.include?(constant) end end def all @processors end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
event_sourcery-0.14.0 | lib/event_sourcery/event_processing/event_stream_processor_registry.rb |
event_sourcery-0.13.0 | lib/event_sourcery/event_processing/event_stream_processor_registry.rb |