Class PayloadArgumentResolver
java.lang.Object
org.springframework.messaging.rsocket.service.PayloadArgumentResolver
- All Implemented Interfaces:
RSocketServiceArgumentResolver
RSocketServiceArgumentResolver
for @Payload
annotated arguments.- Since:
- 6.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorDescriptionPayloadArgumentResolver
(ReactiveAdapterRegistry reactiveAdapterRegistry, boolean useDefaultResolution) -
Method Summary
Modifier and TypeMethodDescriptionboolean
resolve
(Object argument, MethodParameter parameter, RSocketRequestValues.Builder requestValues) Resolve the argument value.
-
Constructor Details
-
PayloadArgumentResolver
public PayloadArgumentResolver(ReactiveAdapterRegistry reactiveAdapterRegistry, boolean useDefaultResolution)
-
-
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
-