Class CollectionArgumentResolver
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.handler.support.CollectionArgumentResolver
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,InitializingBean
,HandlerMethodArgumentResolver
public class CollectionArgumentResolver
extends AbstractExpressionEvaluator
implements HandlerMethodArgumentResolver
A
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.
- 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
-
CollectionArgumentResolver
public CollectionArgumentResolver(boolean canProcessMessageList)
-
-
Method Details
-
supportsParameter
- Specified by:
supportsParameter
in interfaceHandlerMethodArgumentResolver
-
resolveArgument
- Specified by:
resolveArgument
in interfaceHandlerMethodArgumentResolver
-