Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5217E18D11 for ; Fri, 29 Apr 2016 12:48:35 +0000 (UTC) Received: (qmail 34498 invoked by uid 500); 29 Apr 2016 12:48:35 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 34389 invoked by uid 500); 29 Apr 2016 12:48:35 -0000 Mailing-List: contact commits-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 commits@camel.apache.org Received: (qmail 34260 invoked by uid 99); 29 Apr 2016 12:48:35 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Apr 2016 12:48:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 00CAEDFE16; Fri, 29 Apr 2016 12:48:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: astefanutti@apache.org To: commits@camel.apache.org Date: Fri, 29 Apr 2016 12:48:35 -0000 Message-Id: In-Reply-To: <8d6af2c0bfd84197a30968067394ac4b@git.apache.org> References: <8d6af2c0bfd84197a30968067394ac4b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/3] camel git commit: CAMEL-9882: Add deprecation CAMEL-9882: Add deprecation Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c263bc3b Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c263bc3b Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c263bc3b Branch: refs/heads/master Commit: c263bc3bb92c060c291f587e3d1a9c682a57ae0c Parents: 45145bf Author: Antonin Stefanutti Authored: Fri Apr 29 14:47:20 2016 +0200 Committer: Antonin Stefanutti Committed: Fri Apr 29 14:47:20 2016 +0200 ---------------------------------------------------------------------- .../src/main/java/org/apache/camel/cdi/RoutesXml.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/c263bc3b/components/camel-cdi/src/main/java/org/apache/camel/cdi/RoutesXml.java ---------------------------------------------------------------------- diff --git a/components/camel-cdi/src/main/java/org/apache/camel/cdi/RoutesXml.java b/components/camel-cdi/src/main/java/org/apache/camel/cdi/RoutesXml.java index 76a76e2..6edc7cc 100644 --- a/components/camel-cdi/src/main/java/org/apache/camel/cdi/RoutesXml.java +++ b/components/camel-cdi/src/main/java/org/apache/camel/cdi/RoutesXml.java @@ -30,9 +30,19 @@ import org.apache.camel.model.RoutesDefinition; import org.apache.camel.util.ObjectHelper; /** - * A helper class for loading route definitions from a file, URL or the classpath + * A helper class for loading route definitions from a file, URL or the classpath. + * + * @deprecated Use {@link org.apache.camel.cdi.ImportResource} instead: + * + *

+ * {@literal @}ImportResource("foo-camel-context.xml")
+ *  class BarBean {
+ *
+ *  };
+ * 
*/ @Vetoed +@Deprecated public final class RoutesXml { private RoutesXml() {