Oh nice, I really like the choice DSL there.

On 6 September 2016 at 10:37, 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
>



-- 
Matt Sicker <boa...@gmail.com>

Reply via email to