spring-framework / org.springframework.messaging.handler.invocation / HandlerMethodArgumentResolver / resolveArgument

resolveArgument

@Nullable abstract fun resolveArgument(parameter: MethodParameter, message: Message<*>): Any

Resolves a method parameter into an argument value from a given message.

Parameters

parameter - the method parameter to resolve. This parameter must have previously been passed to #supportsParameter(org.springframework.core.MethodParameter) which must have returned true.

message - the currently processed message

Exceptions

Exception - in case of errors with the preparation of argument values

Return
the resolved argument value, or null