Class MessageParameterResolver

java.lang.Object
io.fluxzero.sdk.tracking.handling.MessageParameterResolver
All Implemented Interfaces:
io.fluxzero.common.handling.ParameterResolver<Object>

public class MessageParameterResolver extends Object implements io.fluxzero.common.handling.ParameterResolver<Object>
Resolves handler method parameters of type DeserializingMessage.

This allows handler methods to access the deserialization context, including message metadata, payload, and raw serialized content.

Useful when advanced information about the message is needed, such as the Fluxzero-assigned message index.

  • Constructor Details

    • MessageParameterResolver

      public MessageParameterResolver()
  • Method Details

    • resolve

      public Function<Object,Object> resolve(Parameter p, Annotation methodAnnotation)
      Specified by:
      resolve in interface io.fluxzero.common.handling.ParameterResolver<Object>
    • matches

      public boolean matches(Parameter parameter, Annotation methodAnnotation, Object value)
      Specified by:
      matches in interface io.fluxzero.common.handling.ParameterResolver<Object>
    • mayApply

      public boolean mayApply(Executable method, Class<?> targetClass)
      Specified by:
      mayApply in interface io.fluxzero.common.handling.ParameterResolver<Object>