Class MapArgumentResolver
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.handler.support.MapArgumentResolver
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,InitializingBean
,HandlerMethodArgumentResolver
public class MapArgumentResolver
extends AbstractExpressionEvaluator
implements 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
- Author:
- Artem Bilan, Gary Russell
-
Field Summary
Fields inherited from class org.springframework.integration.util.AbstractExpressionEvaluator
EXPRESSION_PARSER, logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolveArgument
(MethodParameter parameter, Message<?> message) boolean
supportsParameter
(MethodParameter parameter) Methods inherited from class org.springframework.integration.util.AbstractExpressionEvaluator
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setBeanFactory, setConversionService, setSimpleEvaluationContext
-
Constructor Details
-
MapArgumentResolver
public MapArgumentResolver()
-
-
Method Details
-
supportsParameter
- Specified by:
supportsParameter
in interfaceHandlerMethodArgumentResolver
-
resolveArgument
- Specified by:
resolveArgument
in interfaceHandlerMethodArgumentResolver
-