camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astefanu...@apache.org
Subject [2/3] camel git commit: CAMEL-9882: Add deprecation
Date Fri, 29 Apr 2016 12:48:35 GMT
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 <antonin@stefanutti.fr>
Authored: Fri Apr 29 14:47:20 2016 +0200
Committer: Antonin Stefanutti <antonin@stefanutti.fr>
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:
+ *
+ * <pre><code>
+ * {@literal @}ImportResource("foo-camel-context.xml")
+ *  class BarBean {
+ *
+ *  };
+ * </code></pre>
  */
 @Vetoed
+@Deprecated
 public final class RoutesXml {
 
     private RoutesXml() {


Mime
View raw message