Class: Synapse::Command::DispatchInterceptor Abstract

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

Overview

This class is abstract.

Interceptor wrapping a command dispatch that can add custom behavior before or after a command is dispatched to a command handler

Instance Method Summary collapse

Instance Method Details

#intercept(command, unit, chain) ⇒ Object

This method is abstract.

Returns The result of the execution of the command.

Parameters:

Returns:

  • (Object)

    The result of the execution of the command

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/synapse/command/dispatch_interceptor.rb', line 13

def intercept(command, unit, chain)
  raise NotImplementedError
end