org.springframework.messaging.handler.annotation.support

Class MessageMethodArgumentResolver

  • java.lang.Object
    • org.springframework.messaging.handler.annotation.support.MessageMethodArgumentResolver
  • All Implemented Interfaces:
    HandlerMethodArgumentResolver


    public class MessageMethodArgumentResolver
    extends java.lang.Object
    implements HandlerMethodArgumentResolver
    HandlerMethodArgumentResolver for Message method arguments. Validates that the generic type of the payload matches to the message value or otherwise applies MessageConverter to convert to the expected payload type.
    Since:
    4.0
    Author:
    Rossen Stoyanchev, Stephane Nicoll, Juergen Hoeller
    • Constructor Detail

      • MessageMethodArgumentResolver

        public MessageMethodArgumentResolver()
        Create a default resolver instance without message conversion.
      • MessageMethodArgumentResolver

        public MessageMethodArgumentResolver(@Nullable
                                             MessageConverter converter)
        Create a resolver instance with the given MessageConverter.
        Parameters:
        converter - the MessageConverter to use (may be null)
        Since:
        4.3