[
https://issues.apache.org/jira/browse/CAMEL-11532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16258651#comment-16258651
]
ASF GitHub Bot commented on CAMEL-11532:
----------------------------------------
GitHub user sermojohn opened a pull request:
https://github.com/apache/camel/pull/2098
CAMEL-11532 SetBody DSL to accept supplier and function arguments
Enhanced setBody DSL with new methods accepting supplier and function
argument, to align with Java 8 APIs.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sermojohn/camel CAMEL-11532
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/2098.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2098
----
commit 1404328cc3420202e7d3407477b71dcd3f5b594c
Author: Ioannis Sermetziadis <[email protected]>
Date: 2017-11-19T22:05:28Z
CAMEL-11532: Enhanced setBody DSL new methods taking Supplier or Function
argument, to align with Java 8 APIs.
----
> 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)