[
https://issues.apache.org/jira/browse/CAMEL-11532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16258670#comment-16258670
]
Ioannis Sermetziadis commented on CAMEL-11532:
----------------------------------------------
Hello! I tried to implement this enhancement for Java DSL. So, I implemented
two overloaded methods of setBody, accepting a supplier and a function, which I
think is useful as well. Additionally, I implemented overloaded methods of
body, inMessage, outMessage for transform DSL accepting a supplier.
Hope this helps!
> java 8 dsl : allow to set the body using a supplier
> ----------------------------------------------------
>
> Key: CAMEL-11532
> URL: https://issues.apache.org/jira/browse/CAMEL-11532
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Luca Burgazzoli
> Assignee: Luca Burgazzoli
> Priority: Minor
> Fix For: 2.21.0
>
>
> Example:
> {code:java}
> from("timer")
> .setBody(User::new);
> from("timer")
> .trasform()
> .body(User::new);
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)