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 Object
implements CorrelationStrategy, org.springframework.beans.factory.BeanFactoryAware
CorrelationStrategy implementation that evaluates an expression.-
Constructor Summary
ConstructorsConstructorDescriptionExpressionEvaluatingCorrelationStrategy(String expressionString) ExpressionEvaluatingCorrelationStrategy(org.springframework.expression.Expression expression) -
Method Summary
Modifier and TypeMethodDescriptiongetCorrelationKey(org.springframework.messaging.Message<?> message) Find the correlation key for the given message.voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
-
Constructor Details
-
ExpressionEvaluatingCorrelationStrategy
-
ExpressionEvaluatingCorrelationStrategy
public ExpressionEvaluatingCorrelationStrategy(org.springframework.expression.Expression expression)
-
-
Method Details
-
getCorrelationKey
Description copied from interface:CorrelationStrategyFind the correlation key for the given message. If no key can be determined the strategy should not returnnull, but throw an exception.- Specified by:
getCorrelationKeyin interfaceCorrelationStrategy- 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:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-