Class: Synapse::ProcessManager::WiringProcessManager

Inherits:
ProcessManager show all
Defined in:
lib/synapse/process_manager/wiring/process_manager.rb

Overview

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

See Also:

Instance Attribute Summary

Attributes inherited from ProcessManager

#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 wiring DSL



12
13
14
15
16
17
18
19
20
# File 'lib/synapse/process_manager/wiring/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? :wire_registry
      raise ArgumentError, 'Incompatible process type %s' % process_type
    end
  end
end