Class DestinationVariableArgumentResolver
java.lang.Object
org.springframework.messaging.rsocket.service.DestinationVariableArgumentResolver
- All Implemented Interfaces:
RSocketServiceArgumentResolver
public class DestinationVariableArgumentResolver
extends Object
implements RSocketServiceArgumentResolver
RSocketServiceArgumentResolver
for a
@DestinationVariable
annotated argument.
The argument is treated as a single route variable, or in case of a Collection or an array, as multiple route variables.
- Since:
- 6.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
resolve
(Object argument, MethodParameter parameter, RSocketRequestValues.Builder requestValues) Resolve the argument value.
-
Constructor Details
-
DestinationVariableArgumentResolver
public DestinationVariableArgumentResolver()
-
-
Method Details
-
resolve
public boolean resolve(@Nullable Object argument, MethodParameter parameter, RSocketRequestValues.Builder requestValues) Description copied from interface:RSocketServiceArgumentResolver
Resolve the argument value.- Specified by:
resolve
in interfaceRSocketServiceArgumentResolver
- Parameters:
argument
- the argument valueparameter
- the method parameter for the argumentrequestValues
- builder to add RSocket request values to- Returns:
true
if the argument was resolved,false
otherwise
-