Details
-
Type:
Improvement
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.18.0
-
Component/s: camel-core
-
Labels:None
-
Estimated Complexity:Unknown
Description
See if we can get a process with lambda style that has a type-safe message body type, so you can do something like
.process<Foo.class>( f -> { f.doSomethingOnFoo(); ... }) .to("direct:bar");
And see if we can get a mini DSL for the process so you can also get access to header/exchange etc.
.process<Foo.class>( f -> { String golden = header("golden", String.class); f.doSomethingOnFoo(golden); }) .to("direct:bar");
Attachments
Issue Links
- is related to
-
CAMEL-7831 create a java8 only demo showing how to use lambda expressions for Predicate / Expression inside the Java DSL (using Message as a typesafe parameter)
-
- Resolved
-