Class MessagingMessageListenerAdapter.MessagingMessageConverterAdapter

  • All Implemented Interfaces:
    org.springframework.amqp.support.converter.MessageConverter, org.springframework.beans.factory.InitializingBean
    Enclosing class:
    MessagingMessageListenerAdapter

    protected final class MessagingMessageListenerAdapter.MessagingMessageConverterAdapter
    extends org.springframework.amqp.support.converter.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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.reflect.Type checkOptional​(java.lang.reflect.Type genericParameterType)  
      protected java.lang.Object extractPayload​(org.springframework.amqp.core.Message message)  
      protected java.lang.reflect.Method getMethod()  
      protected boolean isAmqpMessageList()  
      protected boolean isMessageList()  
      • 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 Detail

      • isMessageList

        protected boolean isMessageList()
      • isAmqpMessageList

        protected boolean isAmqpMessageList()
      • getMethod

        protected java.lang.reflect.Method getMethod()
      • extractPayload

        protected java.lang.Object extractPayload​(org.springframework.amqp.core.Message message)
        Overrides:
        extractPayload in class org.springframework.amqp.support.converter.MessagingMessageConverter
      • checkOptional

        protected java.lang.reflect.Type checkOptional​(java.lang.reflect.Type genericParameterType)