Class ExpressionEvaluatingCorrelationStrategy

java.lang.Object
org.springframework.integration.aggregator.ExpressionEvaluatingCorrelationStrategy
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, CorrelationStrategy

public class ExpressionEvaluatingCorrelationStrategy
extends java.lang.Object
implements CorrelationStrategy, org.springframework.beans.factory.BeanFactoryAware
CorrelationStrategy implementation that evaluates an expression.
  • Constructor Summary

    Constructors 
    Constructor Description
    ExpressionEvaluatingCorrelationStrategy​(java.lang.String expressionString)  
    ExpressionEvaluatingCorrelationStrategy​(org.springframework.expression.Expression expression)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object getCorrelationKey​(org.springframework.messaging.Message<?> message)
    Find the correlation key for the given message.
    void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getCorrelationKey

      public java.lang.Object getCorrelationKey​(org.springframework.messaging.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
      Parameters:
      message - The message.
      Returns:
      The correlation key.
    • setBeanFactory

      public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException