camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Scala DSL lacks a way to specify return type of language expressions
Date Wed, 02 Oct 2013 06:49:28 GMT
We love contributions, so fell free to work on adding the pieces in
Scala DSL you would like.
http://camel.apache.org/contributing.html



On Wed, Oct 2, 2013 at 3:55 AM, Dale King <dalewking@gmail.com> wrote:
> The language support in the Scala DSL is too simplistic in that it does not
> support all the options of Java DSL.
>
> In particular it does not allow setting the return type of the expression.
> In my case I am trying to  set a header to the result of an xpath count
> expression. In the Java DSL this fails unless you explicitly set the return
> type of the xpath expression because the default return type for xpath is a
> node set and it cannot convert a number to a node set.
>
> It also lacks all the other overloads for things like Namespaces on xpath,
> etc.
>
> --
> Dale King



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message