Interface HandlerMethodArgumentResolver
- All Known Subinterfaces:
SyncHandlerMethodArgumentResolver
- All Known Implementing Classes:
AbstractNamedValueMethodArgumentResolver
,ContinuationHandlerMethodArgumentResolver
,DestinationVariableMethodArgumentResolver
,HandlerMethodArgumentResolverComposite
,HeaderMethodArgumentResolver
,HeadersMethodArgumentResolver
,PayloadMethodArgumentResolver
,RSocketRequesterMethodArgumentResolver
public interface HandlerMethodArgumentResolver
Strategy interface for resolving method parameters into argument values
in the context of a given
Message
.- Since:
- 5.2
- Author:
- Rossen Stoyanchev
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Object>
resolveArgument
(MethodParameter parameter, Message<?> message) Resolves a method parameter into an argument value from a given message.boolean
supportsParameter
(MethodParameter parameter) Whether the given method parameter is supported by this resolver.
-
Method Details
-
supportsParameter
Whether the given method parameter is supported by this resolver.- Parameters:
parameter
- the method parameter to check- Returns:
true
if this resolver supports the supplied parameter;false
otherwise
-
resolveArgument
Resolves a method parameter into an argument value from a given message.- Parameters:
parameter
- the method parameter to resolve. This parameter must have previously been passed tosupportsParameter(org.springframework.core.MethodParameter)
which must have returnedtrue
.message
- the currently processed message- Returns:
Mono
for the argument value, possibly empty
-