Class ExpressionEvaluatingCorrelationStrategy
java.lang.Object
org.springframework.integration.aggregator.ExpressionEvaluatingCorrelationStrategy
- All Implemented Interfaces:
Aware,BeanFactoryAware,CorrelationStrategy
public class ExpressionEvaluatingCorrelationStrategy
extends Object
implements CorrelationStrategy, BeanFactoryAware
CorrelationStrategy implementation that evaluates an expression.- Author:
- Dave Syer, Oleg Zhurakousky, Artem Bilan
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionEvaluatingCorrelationStrategy(String expressionString) ExpressionEvaluatingCorrelationStrategy(Expression expression) -
Method Summary
Modifier and TypeMethodDescriptiongetCorrelationKey(Message<?> message) Find the correlation key for the given message.voidsetBeanFactory(BeanFactory beanFactory)
-
Constructor Details
-
ExpressionEvaluatingCorrelationStrategy
-
ExpressionEvaluatingCorrelationStrategy
-
-
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
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Throws:
BeansException
-