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