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 F12E6200C3D for ; Tue, 14 Mar 2017 12:32:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id EFD01160B7E; Tue, 14 Mar 2017 11:32:46 +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 42095160B7C for ; Tue, 14 Mar 2017 12:32:46 +0100 (CET) Received: (qmail 24526 invoked by uid 500); 14 Mar 2017 11:32:45 -0000 Mailing-List: contact issues-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 issues@camel.apache.org Received: (qmail 24517 invoked by uid 99); 14 Mar 2017 11:32:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Mar 2017 11:32:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id F222F18E864 for ; Tue, 14 Mar 2017 11:32:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.652 X-Spam-Level: X-Spam-Status: No, score=0.652 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id rBT_UBwdmvu3 for ; Tue, 14 Mar 2017 11:32:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id EB1625F474 for ; Tue, 14 Mar 2017 11:32:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 430FDE0419 for ; Tue, 14 Mar 2017 11:32:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A9475243A6 for ; Tue, 14 Mar 2017 11:32:41 +0000 (UTC) Date: Tue, 14 Mar 2017 11:32:41 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-11011) Make all Services Closeable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 14 Mar 2017 11:32:47 -0000 [ https://issues.apache.org/jira/browse/CAMEL-11011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15924022#comment-15924022 ] ASF GitHub Bot commented on CAMEL-11011: ---------------------------------------- GitHub user zregvart opened a pull request: https://github.com/apache/camel/pull/1537 CAMEL-11011 Make all Services Closeable I'm doing this as a PR so that it can be reviewed, anyone with a comment about this? Thanks :+1: This prodvides Service with default implementation of `close` method that delegates to `stop`. You can merge this pull request into a Git repository by running: $ git pull https://github.com/zregvart/camel CAMEL-11011 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/1537.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 #1537 ---- commit cb2cafe2ad8084ced44fcf554a436c22f3aed190 Author: Zoran Regvart Date: 2017-03-14T11:30:07Z CAMEL-11011 Make all Services Closeable This prodvides Service with default implementation of `close` method that delegates to `stop`. ---- > Make all Services Closeable > --------------------------- > > Key: CAMEL-11011 > URL: https://issues.apache.org/jira/browse/CAMEL-11011 > Project: Camel > Issue Type: Improvement > Reporter: Zoran Regvart > Assignee: Zoran Regvart > Priority: Minor > > If the {{org.apache.camel.Service}} implemented {{java.io.Closeable}} users would benefit from being able to use any {{Service}} (such as {{ProducerTemplate}}) in {{try-with-resources}} expressions. -- This message was sent by Atlassian JIRA (v6.3.15#6346)