You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/11/19 22:32:00 UTC

[jira] [Commented] (CAMEL-11532) java 8 dsl : allow to set the body using a supplier

    [ https://issues.apache.org/jira/browse/CAMEL-11532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16258650#comment-16258650 ] 

ASF GitHub Bot commented on CAMEL-11532:
----------------------------------------

sermojohn opened a new pull request #2098: CAMEL-11532 SetBody DSL to accept supplier and function arguments
URL: https://github.com/apache/camel/pull/2098
 
 
   Enhanced setBody DSL with new methods accepting supplier and function argument, to align with Java 8 APIs.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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)