Shouldn't these methods used ExpressionBuilder.outBodyExpression()

   /**
     * Returns a predicate and value builder for the outbound body on an
     * exchange
     */
    public static <E extends Exchange> ValueBuilder<E> outBody() {
        Expression<E> expression = ExpressionBuilder.bodyExpression();
        return new ValueBuilder<E>(expression);
    }

    /**
     * Returns a predicate and value builder for the outbound message body
as a
     * specific type
     */
    public static <E extends Exchange, T> ValueBuilder<E> outBody(Class<T>
type) {
        Expression<E> expression = ExpressionBuilder.<E, T>
bodyExpression(type);
        return new ValueBuilder<E>(expression);
    }

-- 
View this message in context: 
http://www.nabble.com/out-body-expressions-tf4337934s22882.html#a12356586
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to