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,
Message<?> message)
Resolves a method parameter into an argument value from a given message.
|
Object |
resolveArgumentValue(MethodParameter parameter,
Message<?> message)
Resolve the value for the method parameter synchronously.
|
supportsParameter
default reactor.core.publisher.Mono<Object> resolveArgument(MethodParameter parameter, Message<?> message)
By default this simply delegates to resolveArgumentValue(org.springframework.core.MethodParameter, org.springframework.messaging.Message<?>)
for
synchronous resolution.
resolveArgument
in interface HandlerMethodArgumentResolver
parameter
- the method parameter to resolve.
This parameter must have previously been passed to
HandlerMethodArgumentResolver.supportsParameter(org.springframework.core.MethodParameter)
which must have returned true
.message
- the currently processed messageMono
for the argument value, possibly empty@Nullable Object resolveArgumentValue(MethodParameter parameter, Message<?> message)
parameter
- the method parametermessage
- the currently processed message