org.springframework.integration.aggregator
Class CompletionStrategyAdapter

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

public class CompletionStrategyAdapter
extends MessageListMethodAdapter
implements CompletionStrategy

Adapter for methods annotated with @CompletionStrategy and for 'completion-strategy' elements that include a 'method' attribute (e.g. <completion-strategy ref="beanReference" method="methodName"/>).

Author:
Marius Bogoevici

Field Summary
 
Fields inherited from class org.springframework.integration.handler.MessageListMethodAdapter
method
 
Constructor Summary
CompletionStrategyAdapter(java.lang.Object object, java.lang.reflect.Method method)
           
CompletionStrategyAdapter(java.lang.Object object, java.lang.String methodName)
           
 
Method Summary
private  void assertMethodReturnsBoolean()
           
 boolean isComplete(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

CompletionStrategyAdapter

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

CompletionStrategyAdapter

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

assertMethodReturnsBoolean

private void assertMethodReturnsBoolean()

isComplete

public boolean isComplete(java.util.List<Message<?>> messages)
Specified by:
isComplete in interface CompletionStrategy