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.
Since:
1.4
Author:
Stephane Nicoll, Gary Russell, Artem Bilan, Kai Stapel
  • Method Details

    • isMessageList

      public boolean isMessageList()
    • isAmqpMessageList

      public boolean isAmqpMessageList()
    • getMethod

      public @Nullable Method getMethod()
    • extractPayload

      protected Object extractPayload(Message message)
      Description copied from class: MessagingMessageConverter
      Extract the payload of the specified Message.
      Overrides:
      extractPayload in class MessagingMessageConverter
      Parameters:
      message - the AMQP Message to extract payload.
      Returns:
      the extracted payload.
    • checkOptional

      protected @Nullable Type checkOptional(@Nullable Type genericParameterType)