Skip to content

Commit

Permalink
Fix wrong reference on handler interceptors
Browse files Browse the repository at this point in the history
The handler interceptor section states there are three parameters to use
 on a MessageHandlerInterceptor, whilst in essence there are two. Adjust
  this accordingly.
  • Loading branch information
smcvb committed Jun 17, 2020
1 parent 6b18381 commit f691dae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions axon-framework/messaging-concepts/message-intercepting.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ The `BeanValidationInterceptor` also implements `MessageHandlerInterceptor`, all

Message handler interceptors can take action both before and after command processing. Interceptors can even block command processing altogether, for example for security reasons.

Interceptors must implement the `MessageHandlerInterceptor` interface. This interface declares one method, `handle`, that takes three parameters: the command message, the current `UnitOfWork` and an `InterceptorChain`. The `InterceptorChain` is used to continue the dispatching process. The `UnitOfWork` gives you \(1\) the message being handled and \(2\) provides the possibility to tie in logic prior, during or after \(command\) message handling \(see [Unit Of Work](unit-of-work.md) for more information about the phases\).
Interceptors must implement the `MessageHandlerInterceptor` interface. This interface declares one method, `handle`, that takes two parameters: the current `UnitOfWork` and an `InterceptorChain`. The `InterceptorChain` is used to continue the dispatching process. The `UnitOfWork` gives you \(1\) the message being handled and \(2\) provides the possibility to tie in logic prior, during or after \(command\) message handling \(see [Unit Of Work](unit-of-work.md) for more information about the phases\).

Unlike dispatch interceptors, handler interceptors are invoked in the context of the command handler. That means they can attach correlation data based on the message being handled to the unit of work, for example. This correlation data will then be attached to messages being created in the context of that unit of work.

Expand Down Expand Up @@ -170,7 +170,7 @@ public class EventBusConfiguration {
Message handler interceptors can take action both before and after event processing. Interceptors can even block event processing altogether, for example for security reasons.
Interceptors must implement the `MessageHandlerInterceptor` interface. This interface declares one method, `handle()`, that takes three parameters: the \(event\) message, the current `UnitOfWork` and an `InterceptorChain`. The `InterceptorChain` is used to continue the dispatching process. The `UnitOfWork` gives you \(1\) the message being handled and \(2\) provides the possibility to tie in logic prior, during or after \(event\) message handling \(see [Unit Of Work](unit-of-work.md) for more information about the phases\).
Interceptors must implement the `MessageHandlerInterceptor` interface. This interface declares one method, `handle()`, that takes two parameters: the current `UnitOfWork` and an `InterceptorChain`. The `InterceptorChain` is used to continue the dispatching process. The `UnitOfWork` gives you \(1\) the message being handled and \(2\) provides the possibility to tie in logic prior, during or after \(event\) message handling \(see [Unit Of Work](unit-of-work.md) for more information about the phases\).
Unlike dispatch interceptors, handler interceptors are invoked in the context of the event handler. That means they can attach correlation data based on the message being handled to the unit of work, for example. This correlation data will then be attached to event messages being created in the context of that unit of work.
Expand Down Expand Up @@ -237,7 +237,7 @@ The `BeanValidationInterceptor` also implements `MessageHandlerInterceptor`, all

Message handler interceptors can take action both before and after query processing. Interceptors can even block query processing altogether, for example for security reasons.

Interceptors must implement the `MessageHandlerInterceptor` interface. This interface declares one method, `handle`, that takes three parameters: the query message, the current `UnitOfWork` and an `InterceptorChain`. The `InterceptorChain` is used to continue the dispatching process. The `UnitOfWork` gives you \(1\) the message being handled and \(2\) provides the possibility to tie in logic prior, during or after \(query\) message handling \(see[ Unit Of Work ](unit-of-work.md)for more information about the phases\).
Interceptors must implement the `MessageHandlerInterceptor` interface. This interface declares one method, `handle`, that takes two parameters: the current `UnitOfWork` and an `InterceptorChain`. The `InterceptorChain` is used to continue the dispatching process. The `UnitOfWork` gives you \(1\) the message being handled and \(2\) provides the possibility to tie in logic prior, during or after \(query\) message handling \(see[ Unit Of Work ](unit-of-work.md)for more information about the phases\).

Unlike dispatch interceptors, handler interceptors are invoked in the context of the query handler. That means they can attach correlation data based on the message being handled to the unit of work, for example. This correlation data will then be attached to messages being created in the context of that unit of work.

0 comments on commit f691dae

Please sign in to comment.