Class: Synapse::Command::CommandFilter Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/synapse/command/command_filter.rb

Overview

This class is abstract.

Represents a mechanism for validating or modifying commands before they are dispatched on the command bus. This filtering is done very early in the dispatch process, before a unit of work is created for the dispatch.

Instance Method Summary collapse

Instance Method Details

#filter(command) ⇒ CommandMessage

This method is abstract.

Called when a command is preparing to be dispatched on the command bus

Parameters:

Returns:

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/synapse/command/command_filter.rb', line 14

def filter(command)
  raise NotImplementedError
end