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
ConstructorDescriptionExpressionEvaluatingCorrelationStrategy
(String expressionString) ExpressionEvaluatingCorrelationStrategy
(Expression expression) -
Method Summary
Modifier and TypeMethodDescriptiongetCorrelationKey
(Message<?> message) Find the correlation key for the given message.void
setBeanFactory
(BeanFactory beanFactory)
-
Constructor Details
-
ExpressionEvaluatingCorrelationStrategy
-
ExpressionEvaluatingCorrelationStrategy
-
-
Method Details
-
getCorrelationKey
Description copied from interface:CorrelationStrategy
Find the correlation key for the given message. If no key can be determined the strategy should not returnnull
, but throw an exception.- Specified by:
getCorrelationKey
in interfaceCorrelationStrategy
- Parameters:
message
- The message.- Returns:
- The correlation key.
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-