Looks good Luca. Great to have this experimental DSL in the release so we can show it to end users and get feedback.
Would be good with a camel-example-java8 as an example using the DSL. On Tue, Sep 6, 2016 at 5:37 PM, Luca Burgazzoli <lburgazz...@gmail.com> wrote: > Hello everyone, > I've started working on CAMEL-7831 to create a Java8 example to use > Expressions and I've ended up with a simple example - see [1]. > Of course it is only for demonstrative purpose. > > Java8 lambda support to Expressions has been added to > - ExpressionClause to avoid adding overload method for every method > accepting an Expressions definition > - ExpressionBuilder so you can use something like transform(function(e -> > ...)) > > There are some additional functional interfaces to select the argument > of the lambda > - ExchangeFunction > - MessageFunction > - BodyFunction > > > Any feedback would be really appreciated. > > Regards, > Luca > > > [1] > https://github.com/lburgazzoli/apache-camel/blob/CAMEL-7831/examples/camel-example-dsl-java8/src/main/java/org/apache/camel/example/dsl/java8/MyRoute.java > > > --- > Luca Burgazzoli -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2