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

public Interface SyncHandlerMethodArgumentResolver

extends HandlerMethodArgumentResolver
Known Direct Implementers
org.springframework.messaging.handler.annotation.reactive.AbstractNamedValueMethodArgumentResolver, org.springframework.messaging.handler.annotation.reactive.HeadersMethodArgumentResolver
Imports
reactor.core.publisher.Mono, org.springframework.core.MethodParameter, org.springframework.lang.Nullable, org.springframework.messaging.Message

An extension of HandlerMethodArgumentResolver for implementations that are synchronous in nature and do not block to resolve values.
Author
Rossen Stoyanchev
Since
5.2

Method Summary

Modifier and TypeMethod and Description
public default Mono<Object>
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
)

Implements org.springframework.messaging.handler.invocation.reactive.HandlerMethodArgumentResolver.resolveArgument.

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

public Object

Returns:

the resolved value, if any
resolveArgumentValue
(MethodParameter
the method parameter
parameter
,
Message<?>
the currently processed message
message
)

Resolve the value for the method parameter synchronously.

Inherited from org.springframework.messaging.handler.invocation.reactive.HandlerMethodArgumentResolver:
supportsParameter

Method Detail

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

Implements org.springframework.messaging.handler.invocation.reactive.HandlerMethodArgumentResolver.resolveArgument.

Doc from org.springframework.messaging.handler.invocation.reactive.HandlerMethodArgumentResolver.resolveArgument.

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

By default this simply delegates to resolveArgumentValue for synchronous resolution.

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

Annotations
@Override
resolveArgumentValueback to summary
public Object resolveArgumentValue(MethodParameter parameter, Message<?> message)

Resolve the value for the method parameter synchronously.

Parameters
parameter:MethodParameter

the method parameter

message:Message<?>

the currently processed message

Returns:Object

the resolved value, if any

Annotations
@Nullable