Class MessageParameterResolver

java.lang.Object
io.fluxcapacitor.common.handling.TypedParameterResolver<Object>
io.fluxcapacitor.javaclient.tracking.handling.MessageParameterResolver
All Implemented Interfaces:
ParameterResolver<Object>

public class MessageParameterResolver extends TypedParameterResolver<Object>
Resolves handler method parameters of type Message.

This resolver is useful when a handler method needs access to the raw Message object associated with the invocation context.

Resolution is attempted via the message context itself (if it implements HasMessage), or from the current thread-local DeserializingMessage as a fallback.

Example:


 @HandleCommand
 public void handle(MyCommand command, Message message) {
     Instant timestamp = message.getTimestamp();
 }