Spring Integration

org.springframework.integration.aggregator
Class ExpressionEvaluatingCorrelationStrategy

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

public class ExpressionEvaluatingCorrelationStrategy
extends java.lang.Object
implements CorrelationStrategy

CorrelationStrategy implementation that evaluates an expression.

Author:
Dave Syer

Constructor Summary
ExpressionEvaluatingCorrelationStrategy(org.springframework.expression.Expression expression)
           
ExpressionEvaluatingCorrelationStrategy(java.lang.String expressionString)
           
 
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

ExpressionEvaluatingCorrelationStrategy

public ExpressionEvaluatingCorrelationStrategy(java.lang.String expressionString)

ExpressionEvaluatingCorrelationStrategy

public ExpressionEvaluatingCorrelationStrategy(org.springframework.expression.Expression expression)
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

Spring Integration