public class MapArgumentResolver extends AbstractExpressionEvaluator implements HandlerMethodArgumentResolver
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.
EXPRESSION_PARSER, logger
Constructor and Description |
---|
MapArgumentResolver() |
Modifier and Type | Method and Description |
---|---|
Object |
resolveArgument(MethodParameter parameter,
Message<?> message) |
boolean |
supportsParameter(MethodParameter parameter) |
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setBeanFactory, setConversionService
public boolean supportsParameter(MethodParameter parameter)
supportsParameter
in interface HandlerMethodArgumentResolver
public Object resolveArgument(MethodParameter parameter, Message<?> message)
resolveArgument
in interface HandlerMethodArgumentResolver