camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Burgazzoli (JIRA)" <j...@apache.org>
Subject [jira] [Work started] (CAMEL-10140) Java 8 type safe process DSL
Date Thu, 08 Sep 2016 11:14:20 GMT

     [ 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)

Mime
View raw message