Class: Synapse::ProcessManager::MappingProcessManager

Inherits:
ProcessManager
  • Object
show all
Defined in:
lib/synapse/process_manager/mapping/process_manager.rb

Overview

Process manager that is aware of processes that use the mapping DSL

See Also:

Instance Attribute Summary

Attributes inherited from ProcessManager

#factory, #lock_manager, #repository, #suppress_exceptions

Instance Method Summary collapse

Methods inherited from ProcessManager

#notify

Methods included from EventBus::EventListener

#notify

Constructor Details

#initialize(repository, factory, lock_manager, *process_types) ⇒ undefined

Parameters:

Raises:

  • (ArgumentError)

    If a process type is given that doesn’t support the mapping DSL



12
13
14
15
16
17
18
19
20
# File 'lib/synapse/process_manager/mapping/process_manager.rb', line 12

def initialize(repository, factory, lock_manager, *process_types)
  super

  @process_types.each do |process_type|
    unless process_type.respond_to? :event_mapper
      raise ArgumentError, 'Incompatible process type %s' % process_type
    end
  end
end