public class CollectionArgumentResolver extends AbstractExpressionEvaluator implements HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
implementation for Collection
,
Iterator
or array
MethodParameter
.
If canProcessMessageList
is set to true
, only messages
with a payload of Collection<Message<?>>
are supported.
Depending on the MethodParameter.getNestedParameterType()
the whole
Collection<Message<?>>
or just payloads of those messages can be use as an actual argument.
If the value isn't compatible with MethodParameter
,
the ConversionService
is used
to convert the value to the target type.
EXPRESSION_PARSER, logger
Constructor and Description |
---|
CollectionArgumentResolver(boolean canProcessMessageList) |
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 CollectionArgumentResolver(boolean canProcessMessageList)
public boolean supportsParameter(MethodParameter parameter)
supportsParameter
in interface HandlerMethodArgumentResolver
public Object resolveArgument(MethodParameter parameter, Message<?> message)
resolveArgument
in interface HandlerMethodArgumentResolver