[
https://issues.apache.org/jira/browse/CAMEL-7831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14641906#comment-14641906
]
Claus Ibsen commented on CAMEL-7831:
------------------------------------
I logged CAMEL-9018 as it would be good to get a small example and archetype
that is java 8 based. It can help quicker try out this and maybe find ways to
improve the java-dsl, or maybe we need a camel-java8-dsl module that has some
improvements in the RouteBuilder or something?
Though ideally its the current DSL in camel-core that should be java8 friendly
> create a java8 only demo showing how to use lambda expressions for Predicate
> / Expression inside the Java DSL (using Message as a typesafe parameter)
> -----------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-7831
> URL: https://issues.apache.org/jira/browse/CAMEL-7831
> Project: Camel
> Issue Type: New Feature
> Components: examples
> Reporter: james strachan
> Fix For: 2.16.0
>
>
> e.g. so folks can type things like
> {code}
> from("seda:cheese").
> filter(m -> m.getHeader("foo", int.class) > 5).
> map(m -> createPurchaseOrder(m.getBody(Invoice.class)).
> to("seda:bar");
> {code}
> Note if the current Predicate/Expression classes don't work as lambdas we
> could add a new interface with a single method to the DSL to ensure Java 8
> does the right thing with lambdas
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)