public class ModelArgumentResolver extends Object implements HandlerMethodArgumentResolver
Model
controller method argument.Constructor and Description |
---|
ModelArgumentResolver() |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Object> |
resolveArgument(org.springframework.core.MethodParameter parameter,
org.springframework.ui.ModelMap model,
org.springframework.web.server.ServerWebExchange exchange)
The returned
Mono may produce one or zero values if the argument
does not resolve to any value, which will result in null passed
as the argument value. |
boolean |
supportsParameter(org.springframework.core.MethodParameter parameter) |
public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
supportsParameter
in interface HandlerMethodArgumentResolver
public reactor.core.publisher.Mono<Object> resolveArgument(org.springframework.core.MethodParameter parameter, org.springframework.ui.ModelMap model, org.springframework.web.server.ServerWebExchange exchange)
HandlerMethodArgumentResolver
Mono
may produce one or zero values if the argument
does not resolve to any value, which will result in null
passed
as the argument value.resolveArgument
in interface HandlerMethodArgumentResolver
parameter
- the method parametermodel
- the implicit model for request handlingexchange
- the current exchange