java.lang.Object
io.fluxzero.common.handling.TypedParameterResolver<Object>
io.fluxzero.sdk.tracking.handling.MessageParameterResolver
- All Implemented Interfaces:
io.fluxzero.common.handling.ParameterResolver<Object>
public class MessageParameterResolver
extends io.fluxzero.common.handling.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();
}
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.fluxzero.common.handling.TypedParameterResolver
matchesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluxzero.common.handling.ParameterResolver
determinesSpecificity, filterMessage
-
Constructor Details
-
MessageParameterResolver
public MessageParameterResolver()
-
-
Method Details
-
resolve
-