Package org.axonframework.test.util
Class DefaultCallbackBehavior
java.lang.Object
org.axonframework.test.util.DefaultCallbackBehavior
- All Implemented Interfaces:
CallbackBehavior
Default implementation of the CallbackBehavior interface. This implementation always returns
method to be invoked with a
null, which
results in the
invalid reference
org.axonframework.commandhandling.CommandCallback#onResult(CommandMessage, CommandResultMessage)
null result
parameter.- Since:
- 2.0
- Author:
- Allard Buijze
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultCallbackBehavior
public DefaultCallbackBehavior()
-
-
Method Details
-
handle
Description copied from interface:CallbackBehaviorInvoked when the Command Bus receives a Command that is dispatched with a Callback method. The return value of this invocation is used to invoke the callback.- Specified by:
handlein interfaceCallbackBehavior- Parameters:
commandPayload- The payload of the Command MessagecommandMetadata- The Metadata of the CommandMessage- Returns:
- any return value to pass to the callback's onResult method.
-