You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (JIRA)" <ji...@apache.org> on 2016/09/08 11:14:20 UTC
[jira] [Work started] (CAMEL-10140) Java 8 type safe process DSL
[ https://issues.apache.org/jira/browse/CAMEL-10140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on CAMEL-10140 started by Luca Burgazzoli.
-----------------------------------------------
> Java 8 type safe process DSL
> ----------------------------
>
> Key: CAMEL-10140
> URL: https://issues.apache.org/jira/browse/CAMEL-10140
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Luca Burgazzoli
>
> See if we can get a process with lambda style that has a type-safe message body type, so you can do something like
> {code}
> .process<Foo.class>( f -> { f.doSomethingOnFoo(); ... })
> .to("direct:bar");
> {code}
> And see if we can get a mini DSL for the process so you can also get access to header/exchange etc.
> {code}
> .process<Foo.class>( f -> {
> String golden = header("golden", String.class);
> f.doSomethingOnFoo(golden);
> })
> .to("direct:bar");
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)