Class MessagingMessageListenerAdapter.MessagingMessageConverterAdapter
java.lang.Object
org.springframework.amqp.support.converter.MessagingMessageConverter
org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.MessagingMessageConverterAdapter
- All Implemented Interfaces:
MessageConverter
,InitializingBean
- Enclosing class:
- MessagingMessageListenerAdapter
protected final class MessagingMessageListenerAdapter.MessagingMessageConverterAdapter
extends MessagingMessageConverter
Delegates payload extraction to
AbstractAdaptableMessageListener.extractMessage(org.springframework.amqp.core.Message message)
to enforce backward compatibility. Uses this listener adapter's converter instead of
the one configured in the converter adapter.
If the inbound message has no type information and the configured message converter
supports it, we attempt to infer the conversion type from the method signature.-
Method Summary
Modifier and TypeMethodDescriptionprotected Type
checkOptional
(Type genericParameterType) protected Object
extractPayload
(Message message) Extract the payload of the specifiedMessage
.protected Method
protected boolean
protected boolean
Methods inherited from class org.springframework.amqp.support.converter.MessagingMessageConverter
afterPropertiesSet, fromMessage, getHeaderMapper, setHeaderMapper, setPayloadConverter, toMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.amqp.support.converter.MessageConverter
toMessage
-
Method Details
-
isMessageList
protected boolean isMessageList() -
isAmqpMessageList
protected boolean isAmqpMessageList() -
getMethod
-
extractPayload
Description copied from class:MessagingMessageConverter
Extract the payload of the specifiedMessage
.- Overrides:
extractPayload
in classMessagingMessageConverter
- Parameters:
message
- the AMQP Message to extractpayload
.- Returns:
- the extracted
payload
.
-
checkOptional
-