org.axonframework.commandhandling
Interface CommandDispatchInterceptor
- All Known Implementing Classes:
- BeanValidationInterceptor
public interface CommandDispatchInterceptor
Interceptor that allows commands to be intercepted and modified before they are dispatched by the Command Bus. This
interceptor provides a very early means to alter or reject Command Messages, even before any Unit of Work is
created.
- Since:
- 2.0
- Author:
- Allard Buijze
handle
CommandMessage<?> handle(CommandMessage<?> commandMessage)
- Invoked each time a command is about to be dispatched on a Command Bus. The given
commandMessage
represents the command being dispatched.
- Parameters:
commandMessage
- The command message intended to be dispatched on the Command Bus
- Returns:
- the command message to dispatch on the Command Bus
Copyright © 2010-2016. All Rights Reserved.