Class PayloadParameterResolver
java.lang.Object
io.fluxzero.sdk.tracking.handling.PayloadParameterResolver
Resolves handler method parameters by injecting the message payload.
This resolver matches a parameter when its declared type is assignable from the actual payload class of the incoming message.
This resolver is typically used in conjunction with filters such as PayloadFilter to determine
handler compatibility based on payload types.
Special care is taken to allow null payloads for parameters that are declared nullable, which can occur during upcasting or transformation pipelines.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates that this resolver contributes to disambiguating handler methods when multiple handlers are present in the same target class.booleanmatches(Parameter p, Annotation methodAnnotation, HasMessage value) default booleanmayApply(Executable arg0, Class<?> arg1) resolve(Parameter p, Annotation methodAnnotation) booleantest(HasMessage message, Parameter parameter)
-
Constructor Details
-
PayloadParameterResolver
public PayloadParameterResolver()
-
-
Method Details
-
matches
-
resolve
-
test
-
determinesSpecificity
public boolean determinesSpecificity()Indicates that this resolver contributes to disambiguating handler methods when multiple handlers are present in the same target class.This is useful when more than one method matches a message, and the framework must decide which method is more specific. If this returns
true, the resolver's presence and compatibility with the parameter may influence which handler is selected.- Returns:
- true, signaling that this resolver helps determine method specificity
-
mayApply
-