You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/07/13 12:38:20 UTC

[jira] [Created] (CAMEL-10140) Java 8 type safe process DSL

Claus Ibsen created CAMEL-10140:
-----------------------------------

             Summary: 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


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)