Search in sources :

Example 1 with ExpressionSubElementDefinition

use of org.apache.camel.model.ExpressionSubElementDefinition in project camel by apache.

the class StickyLoadBalancerDefinition method setCorrelationExpression.

public void setCorrelationExpression(Expression expression) {
    ExpressionDefinition def = ExpressionNodeHelper.toExpressionDefinition(expression);
    this.correlationExpression = new ExpressionSubElementDefinition();
    this.correlationExpression.setExpressionType(def);
}
Also used : ExpressionSubElementDefinition(org.apache.camel.model.ExpressionSubElementDefinition) ExpressionDefinition(org.apache.camel.model.language.ExpressionDefinition)

Aggregations

ExpressionSubElementDefinition (org.apache.camel.model.ExpressionSubElementDefinition)1 ExpressionDefinition (org.apache.camel.model.language.ExpressionDefinition)1