Top Description Methods
org.springframework.messaging.handler.invocation.reactive

public Interface HandlerMethodArgumentResolver

Known Direct Subinterfaces
org.springframework.messaging.handler.invocation.reactive.SyncHandlerMethodArgumentResolver
Known Direct Implementers
org.springframework.messaging.handler.invocation.reactive.HandlerMethodArgumentResolverComposite, org.springframework.messaging.rsocket.annotation.support.RSocketRequesterMethodArgumentResolver, org.springframework.messaging.handler.annotation.reactive.ContinuationHandlerMethodArgumentResolver, org.springframework.messaging.handler.annotation.reactive.PayloadMethodArgumentResolver
Imports
reactor.core.publisher.Mono, org.springframework.core.MethodParameter, org.springframework.messaging.Message

Strategy interface for resolving method parameters into argument values in the context of a given Message.
Author
Rossen Stoyanchev
Since
5.2

Method Summary

Modifier and TypeMethod and Description
public Mono<Object>

Returns:

Mono for the argument value, possibly empty
resolveArgument
(MethodParameter
the method parameter to resolve. This parameter must have previously been passed to supportsParameter(org.springframework.core.MethodParameter) which must have returned true.
parameter
,
Message<?>
the currently processed message
message
)

Resolves a method parameter into an argument value from a given message.

public boolean

Returns:

true if this resolver supports the supplied parameter; false otherwise
supportsParameter
(MethodParameter
the method parameter to check
parameter
)

Whether the given method parameter is supported by this resolver.

Method Detail

resolveArgumentback to summary
public Mono<Object> resolveArgument(MethodParameter parameter, Message<?> message)

Resolves a method parameter into an argument value from a given message.

Parameters
parameter:MethodParameter

the method parameter to resolve. This parameter must have previously been passed to supportsParameter(org.springframework.core.MethodParameter) which must have returned true.

message:Message<?>

the currently processed message

Returns:Mono<Object>

Mono for the argument value, possibly empty

supportsParameterback to summary
public boolean supportsParameter(MethodParameter parameter)

Whether the given method parameter is supported by this resolver.

Parameters
parameter:MethodParameter

the method parameter to check

Returns:boolean

true if this resolver supports the supplied parameter; false otherwise