org.springframework.integration.aggregator
Class MethodInvokingCorrelationStrategy

java.lang.Object
  extended by org.springframework.integration.aggregator.MethodInvokingCorrelationStrategy
All Implemented Interfaces:
CorrelationStrategy

public class MethodInvokingCorrelationStrategy
extends java.lang.Object
implements CorrelationStrategy

CorrelationStrategy implementation that works as an adapter to another bean.


Constructor Summary
MethodInvokingCorrelationStrategy(java.lang.Object object, java.lang.reflect.Method method)
           
MethodInvokingCorrelationStrategy(java.lang.Object object, java.lang.String methodName)
           
 
Method Summary
 java.lang.Object getCorrelationKey(Message<?> message)
          Find the correlation key for the given message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvokingCorrelationStrategy

public MethodInvokingCorrelationStrategy(java.lang.Object object,
                                         java.lang.String methodName)

MethodInvokingCorrelationStrategy

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

getCorrelationKey

public java.lang.Object getCorrelationKey(Message<?> message)
Description copied from interface: CorrelationStrategy
Find the correlation key for the given message. If no key can be determined the strategy should not return null, but throw an exception.

Specified by:
getCorrelationKey in interface CorrelationStrategy