[
https://issues.apache.org/jira/browse/CAMEL-11532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16265324#comment-16265324
]
ASF GitHub Bot commented on CAMEL-11532:
----------------------------------------
GitHub user sermojohn opened a pull request:
https://github.com/apache/camel/pull/2114
CAMEL-11532 Java DSL enhancement to accept supplier and function arguments
@lburgazzoli the PR to master
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sermojohn/camel CAMEL-11532-to-master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/2114.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 #2114
----
commit 04b33b860f5b336deea2db44f0e6c5caa90497e9
Author: Ioannis Sermetziadis <[email protected]>
Date: 2017-11-19T22:05:28Z
CAMEL-11532: DSL enhancements to support Java 8 supplier and function
arguments for setBody and transform expressions.
----
> 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)