public interface SyncHandlerMethodArgumentResolver extends HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
for implementations
that are synchronous in nature and do not block to resolve values.Modifier and Type | Method and Description |
---|---|
default reactor.core.publisher.Mono<Object> |
resolveArgument(MethodParameter parameter,
BindingContext bindingContext,
ServerWebExchange exchange)
Resolve the value for the method parameter.
|
Object |
resolveArgumentValue(MethodParameter parameter,
BindingContext bindingContext,
ServerWebExchange exchange)
Resolve the value for the method parameter synchronously.
|
supportsParameter
default reactor.core.publisher.Mono<Object> resolveArgument(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange)
By default this simply delegates to resolveArgumentValue(org.springframework.core.MethodParameter, org.springframework.web.reactive.BindingContext, org.springframework.web.server.ServerWebExchange)
for
synchronous resolution.
resolveArgument
in interface HandlerMethodArgumentResolver
parameter
- the method parameterbindingContext
- the binding context to useexchange
- the current exchangeMono
for the argument value, possibly empty@Nullable Object resolveArgumentValue(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange)
parameter
- the method parameterbindingContext
- the binding context to useexchange
- the current exchange