Class MapArgumentResolver

java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.handler.support.MapArgumentResolver
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver

public class MapArgumentResolver
extends AbstractExpressionEvaluator
implements org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver
A HandlerMethodArgumentResolver implementation to resolve argument for the MethodParameter as a Map or Properties.

The Message.getHeaders() is used when MethodParameter is marked with the Headers annotation or Message.getPayload() isn't Map or Properties compatible.

If MethodParameter is of Properties type and Message.getPayload() is a String containing = symbol, the MapArgumentResolver uses the ConversionService trying to convert that String to a Properties object.

Since:
5.0
  • Constructor Details

  • Method Details

    • supportsParameter

      public boolean supportsParameter​(org.springframework.core.MethodParameter parameter)
      Specified by:
      supportsParameter in interface org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver
    • resolveArgument

      public java.lang.Object resolveArgument​(org.springframework.core.MethodParameter parameter, org.springframework.messaging.Message<?> message)
      Specified by:
      resolveArgument in interface org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver