On 8/27/07, Nicky Sandhu <[EMAIL PROTECTED]> wrote:
>
> 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);
> }
Great catch! DOH! (Yet another reminder we should aim for 100% test coverage :).
Patch applied with thanks!
--
James
-------
http://macstrac.blogspot.com/