Class NullAwarePayloadArgumentResolver
java.lang.Object
org.springframework.messaging.handler.annotation.support.PayloadMethodArgumentResolver
org.springframework.integration.support.NullAwarePayloadArgumentResolver
- All Implemented Interfaces:
HandlerMethodArgumentResolver
public class NullAwarePayloadArgumentResolver extends PayloadMethodArgumentResolver
A
PayloadMethodArgumentResolver
that treats KafkaNull payloads as null.
@Paylaod
annotation must have required = false.- Since:
- 5.1
- Author:
- Gary Russell
-
Constructor Summary
Constructors Constructor Description NullAwarePayloadArgumentResolver(MessageConverter messageConverter)
NullAwarePayloadArgumentResolver(MessageConverter messageConverter, Validator validator)
-
Method Summary
Modifier and Type Method Description protected boolean
isEmptyPayload(Object payload)
Methods inherited from class org.springframework.messaging.handler.annotation.support.PayloadMethodArgumentResolver
resolveArgument, resolveTargetClass, supportsParameter, validate
-
Constructor Details
-
Method Details
-
isEmptyPayload
- Overrides:
isEmptyPayload
in classPayloadMethodArgumentResolver
-