Interface SyncHandlerMethodArgumentResolver
- All Superinterfaces:
HandlerMethodArgumentResolver
- All Known Implementing Classes:
AbstractNamedValueMethodArgumentResolver
,DestinationVariableMethodArgumentResolver
,HeaderMethodArgumentResolver
,HeadersMethodArgumentResolver
An extension of
HandlerMethodArgumentResolver
for implementations
that are synchronous in nature and do not block to resolve values.- Since:
- 5.2
- Author:
- Rossen Stoyanchev
-
Method Summary
Modifier and TypeMethodDescriptiondefault reactor.core.publisher.Mono<Object>
resolveArgument
(MethodParameter parameter, Message<?> message) Resolves a method parameter into an argument value from a given message.resolveArgumentValue
(MethodParameter parameter, Message<?> message) Resolve the value for the method parameter synchronously.Methods inherited from interface org.springframework.messaging.handler.invocation.reactive.HandlerMethodArgumentResolver
supportsParameter
-
Method Details
-
resolveArgument
default reactor.core.publisher.Mono<Object> resolveArgument(MethodParameter parameter, Message<?> message) Resolves a method parameter into an argument value from a given message.By default this simply delegates to
resolveArgumentValue(org.springframework.core.MethodParameter, org.springframework.messaging.Message<?>)
for synchronous resolution.- Specified by:
resolveArgument
in interfaceHandlerMethodArgumentResolver
- Parameters:
parameter
- the method parameter to resolve. This parameter must have previously been passed toHandlerMethodArgumentResolver.supportsParameter(org.springframework.core.MethodParameter)
which must have returnedtrue
.message
- the currently processed message- Returns:
Mono
for the argument value, possibly empty
-
resolveArgumentValue
Resolve the value for the method parameter synchronously.- Parameters:
parameter
- the method parametermessage
- the currently processed message- Returns:
- the resolved value, if any
-