public class ModelArgumentResolver extends HandlerMethodArgumentResolverSupport implements SyncHandlerMethodArgumentResolver
Model
that can
also be resolved as a Map
.
A Map return value can be interpreted in more than one ways depending
on the presence of annotations like @ModelAttribute
or
@ResponseBody
. As of 5.2 this resolver returns false if a
parameter of type Map
is also annotated.
logger
Constructor and Description |
---|
ModelArgumentResolver(ReactiveAdapterRegistry adapterRegistry) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
resolveArgumentValue(MethodParameter parameter,
BindingContext context,
ServerWebExchange exchange)
Resolve the value for the method parameter synchronously.
|
boolean |
supportsParameter(MethodParameter param)
Whether this resolver supports the given method parameter.
|
checkAnnotatedParamNoReactiveWrapper, checkParameterType, checkParameterTypeNoReactiveWrapper, getAdapterRegistry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolveArgument
public ModelArgumentResolver(ReactiveAdapterRegistry adapterRegistry)
public boolean supportsParameter(MethodParameter param)
HandlerMethodArgumentResolver
supportsParameter
in interface HandlerMethodArgumentResolver
param
- the method parameterpublic java.lang.Object resolveArgumentValue(MethodParameter parameter, BindingContext context, ServerWebExchange exchange)
SyncHandlerMethodArgumentResolver
resolveArgumentValue
in interface SyncHandlerMethodArgumentResolver
parameter
- the method parametercontext
- the binding context to useexchange
- the current exchange