org.springframework.integration.aggregator
Class AggregatorAdapter

java.lang.Object
  extended by org.springframework.integration.handler.MessageListMethodAdapter
      extended by org.springframework.integration.aggregator.AggregatorAdapter
All Implemented Interfaces:
Aggregator

public class AggregatorAdapter
extends MessageListMethodAdapter
implements Aggregator

Aggregator adapter for methods annotated with @Aggregator and for 'aggregator' elements that include a 'method' attribute (e.g. <aggregator ref="beanReference" method="methodName"/>).

Author:
Marius Bogoevici, Mark Fisher

Field Summary
 
Fields inherited from class org.springframework.integration.handler.MessageListMethodAdapter
method
 
Constructor Summary
AggregatorAdapter(java.lang.Object object, java.lang.reflect.Method method)
           
AggregatorAdapter(java.lang.Object object, java.lang.String methodName)
           
 
Method Summary
 Message<?> aggregate(java.util.List<Message<?>> messages)
           
 
Methods inherited from class org.springframework.integration.handler.MessageListMethodAdapter
executeMethod, getMethod, setMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregatorAdapter

public AggregatorAdapter(java.lang.Object object,
                         java.lang.reflect.Method method)

AggregatorAdapter

public AggregatorAdapter(java.lang.Object object,
                         java.lang.String methodName)
Method Detail

aggregate

public Message<?> aggregate(java.util.List<Message<?>> messages)
Specified by:
aggregate in interface Aggregator