Class: Synapse::Command::CommandFilter Abstract
- Inherits:
-
Object
- Object
- Synapse::Command::CommandFilter
- 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.
Direct Known Subclasses
Instance Method Summary collapse
-
#filter(command) ⇒ CommandMessage
abstract
Called when a command is preparing to be dispatched on the command bus.
Instance Method Details
#filter(command) ⇒ CommandMessage
This method is abstract.
Called when a command is preparing to be dispatched on the command bus
14 15 16 |
# File 'lib/synapse/command/command_filter.rb', line 14 def filter(command) raise NotImplementedError end |