spring-framework / org.springframework.web.method.support / HandlerMethodArgumentResolver / resolveArgument

resolveArgument

@Nullable abstract fun resolveArgument(parameter: MethodParameter, @Nullable mavContainer: ModelAndViewContainer, webRequest: NativeWebRequest, @Nullable binderFactory: WebDataBinderFactory): Any

Resolves a method parameter into an argument value from a given request. A ModelAndViewContainer provides access to the model for the request. A WebDataBinderFactory provides a way to create a WebDataBinder instance when needed for data binding and type conversion purposes.

Parameters

parameter - the method parameter to resolve. This parameter must have previously been passed to #supportsParameter which must have returned true.

mavContainer - the ModelAndViewContainer for the current request

webRequest - the current request

binderFactory - a factory for creating WebDataBinder instances

Exceptions

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

Return
the resolved argument value, or null if not resolvable