Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E7743200B7C for ; Thu, 8 Sep 2016 15:26:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E62F1160ABD; Thu, 8 Sep 2016 13:26:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 39C9F160AA5 for ; Thu, 8 Sep 2016 15:26:40 +0200 (CEST) Received: (qmail 51960 invoked by uid 500); 8 Sep 2016 13:26:39 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 51942 invoked by uid 99); 8 Sep 2016 13:26:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2016 13:26:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 8642CC15FC for ; Thu, 8 Sep 2016 13:26:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Eorid8y6gDPK for ; Thu, 8 Sep 2016 13:26:35 +0000 (UTC) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 54F8C60D08 for ; Thu, 8 Sep 2016 13:26:34 +0000 (UTC) Received: by mail-qk0-f181.google.com with SMTP id m184so41511498qkb.1 for ; Thu, 08 Sep 2016 06:26:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=frtMQ04SsvDcXLATFZ1G3g0d067r+iAW1K02ewl1sks=; b=nzO8s1AI001yx04QwiQ/3RONPAedKVGhWczZt7pBmdPhlPKvHMaQsSupMx0eoUocyS 3QgHZSgLEAe4Sucoo6wCiGlN8zJuKnawOM2Hq+x3WbUdD+3AnpiJ6l9PhIpPldMbEYVw 5ps96JWYS6Z72/kLi9xoXsKBKBzmu5VNBN1gEOIXxiuNOHB/ybsO8Eyf2uXlWXgFFaJB 19u8JFNhg4wk+4EFgbSOdlKlc2iO8LW5AIoUinxb+iK9z3IpCHj6vCqtWdaxsZ2+xlIt m7hIalAbBpRNCrLeXR6DDYYBTcl2/3usxfhsCeGHMbY7frER7MaFjfBxZf/nfh8rZJZB ZR5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=frtMQ04SsvDcXLATFZ1G3g0d067r+iAW1K02ewl1sks=; b=B8YR4IHq/RiKN2Bkcoad90gqcED1Mn0m5QO4RXVOQEcbUUx2FZhzPRJTEsc+GVmjJo S6hHxQocL9XR1Kp60aPLEWuwAPtKVjaJjhE60PEfceUgF3TWqiylmTCejKlo104SH1T7 f5BF9Rq+hA23s6vZMagMnyIxwmA1wclZa9/cndrusPH7Gy1E1/OfXHz8Ti0kpZL478hW 9X692XWi5sxWflyDlKPSWdf/SukSv26CGx3UCsz5ILIS7ZI85SqCt4ZHm20w6RZrZnDw Kcg9IYf4iwnRQVTONZiOt0VizyzikNVN9imU1y5EF7RI0Fo7YgX6v0Y6nrOpD3HyXL3c fqQw== X-Gm-Message-State: AE9vXwOGYagqEdivMUeFx1LeFx1IZk/ShLInqW71Q7UC5Xht3mLBQjgTKe+4CKhsI5hgxqA8X7XsXSiR/vhJnw== X-Received: by 10.55.99.202 with SMTP id x193mr8163460qkb.199.1473341193263; Thu, 08 Sep 2016 06:26:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.35.5 with HTTP; Thu, 8 Sep 2016 06:26:11 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Thu, 8 Sep 2016 15:26:11 +0200 Message-ID: Subject: Re: Java8 DSL (CAMEL-7831) To: dev Content-Type: text/plain; charset=UTF-8 archived-at: Thu, 08 Sep 2016 13:26:41 -0000 Looks good Luca. Great to have this experimental DSL in the release so we can show it to end users and get feedback. Would be good with a camel-example-java8 as an example using the DSL. On Tue, Sep 6, 2016 at 5:37 PM, Luca Burgazzoli wrote: > Hello everyone, > I've started working on CAMEL-7831 to create a Java8 example to use > Expressions and I've ended up with a simple example - see [1]. > Of course it is only for demonstrative purpose. > > Java8 lambda support to Expressions has been added to > - ExpressionClause to avoid adding overload method for every method > accepting an Expressions definition > - ExpressionBuilder so you can use something like transform(function(e -> ...)) > > There are some additional functional interfaces to select the argument > of the lambda > - ExchangeFunction > - MessageFunction > - BodyFunction > > > Any feedback would be really appreciated. > > Regards, > Luca > > > [1] https://github.com/lburgazzoli/apache-camel/blob/CAMEL-7831/examples/camel-example-dsl-java8/src/main/java/org/apache/camel/example/dsl/java8/MyRoute.java > > > --- > Luca Burgazzoli -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2