Class UserParameterResolver
java.lang.Object
io.fluxzero.sdk.tracking.handling.authentication.UserParameterResolver
Resolves parameters of type
User, typically representing the current user in a request context.
This resolver delegates the extraction of user information to a configured UserProvider, which defines how to
extract a user from a HasMessage or DeserializingMessage.
If no user can be determined from the message context, the User.getCurrent() thread-local fallback is used.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefault booleangetInputCacheKey(Parameter parameter, Annotation methodAnnotation, io.fluxzero.common.handling.HandlerInput<Object> representative) booleanisNoMatchPayloadClassKey(Parameter parameter, Annotation methodAnnotation, io.fluxzero.common.handling.HandlerInput<Object> representative) booleanisPayloadClassKey(Parameter parameter, Annotation methodAnnotation, io.fluxzero.common.handling.HandlerInput<Object> representative) default booleanmatches(Parameter arg0, Annotation arg1, Object arg2) booleanmatches(Parameter arg0, Annotation arg1, Object arg2) default booleanmayApply(Executable arg0, Class<?> arg1) booleanmayApply(Executable arg0, Class<?> arg1) prepare(Parameter parameter, Annotation methodAnnotation) io.fluxzero.common.handling.HandlerInputResolver.Resolution<Object> prepareInput(Parameter parameter, Annotation methodAnnotation, io.fluxzero.common.handling.HandlerInput<Object> representative) resolve(Parameter p, Annotation methodAnnotation) default intdefault boolean
-
Constructor Details
-
UserParameterResolver
-
-
Method Details
-
resolve
-
prepare
-
getInputCacheKey
public Object getInputCacheKey(Parameter parameter, Annotation methodAnnotation, io.fluxzero.common.handling.HandlerInput<Object> representative) -
isPayloadClassKey
public boolean isPayloadClassKey(Parameter parameter, Annotation methodAnnotation, io.fluxzero.common.handling.HandlerInput<Object> representative) -
isNoMatchPayloadClassKey
public boolean isNoMatchPayloadClassKey(Parameter parameter, Annotation methodAnnotation, io.fluxzero.common.handling.HandlerInput<Object> representative) -
prepareInput
public io.fluxzero.common.handling.HandlerInputResolver.Resolution<Object> prepareInput(Parameter parameter, Annotation methodAnnotation, io.fluxzero.common.handling.HandlerInput<Object> representative) -
matches
-
determinesSpecificity
default boolean determinesSpecificity() -
specificityPriority
default int specificityPriority() -
test
-
mayApply
-
matches
-
mayApply
-