public class NullAwarePayloadArgumentResolver extends PayloadMethodArgumentResolver
PayloadMethodArgumentResolver
that treats KafkaNull payloads as null.
@Paylaod
annotation must have required = false.Constructor and Description |
---|
NullAwarePayloadArgumentResolver(MessageConverter messageConverter) |
NullAwarePayloadArgumentResolver(MessageConverter messageConverter,
Validator validator) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isEmptyPayload(Object payload) |
resolveArgument, resolveTargetClass, supportsParameter, validate
public NullAwarePayloadArgumentResolver(MessageConverter messageConverter)
public NullAwarePayloadArgumentResolver(MessageConverter messageConverter, Validator validator)
protected boolean isEmptyPayload(Object payload)
isEmptyPayload
in class PayloadMethodArgumentResolver