Author: davsclaus
Date: Thu Apr 23 04:48:16 2009
New Revision: 767791

URL: http://svn.apache.org/viewvc?rev=767791&view=rev
Log:
Marked methods @deprecated that has been removed in Camel 2.0 recently.

Modified:
    
camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/model/InterceptorType.java
    
camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java

Modified: 
camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/model/InterceptorType.java
URL: 
http://svn.apache.org/viewvc/camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/model/InterceptorType.java?rev=767791&r1=767790&r2=767791&view=diff
==============================================================================
--- 
camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/model/InterceptorType.java
 (original)
+++ 
camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/model/InterceptorType.java
 Thu Apr 23 04:48:16 2009
@@ -25,6 +25,7 @@
  * Base class for interceptor types.
  * 
  * @version $Revision$
+ * @deprecated will be removed in Camel 2.0
  */
 @XmlType(name = "interceptorType")
 public abstract class InterceptorType extends OutputType implements Block {

Modified: 
camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
URL: 
http://svn.apache.org/viewvc/camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java?rev=767791&r1=767790&r2=767791&view=diff
==============================================================================
--- 
camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
 (original)
+++ 
camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
 Thu Apr 23 04:48:16 2009
@@ -1184,6 +1184,9 @@
         return loop;
     }
 
+    /**
+     * @deprecated will be removed in Camel 2.0
+     */
     public Type throwFault(Throwable fault) {
         ThrowFaultType answer = new ThrowFaultType();
         answer.setFault(fault);
@@ -1191,12 +1194,17 @@
         return (Type) this;
     }
 
+    /**
+     * @deprecated will be removed in Camel 2.0
+     */
     public Type throwFault(String message) {
         return throwFault(new CamelException(message));
     }
 
     /**
      * Intercepts outputs added to this node in the future (i.e. intercepts 
outputs added after this statement)
+     *
+     * @deprecated will be removed in Camel 2.0
      */
     public Type interceptor(String ref) {
         InterceptorRef interceptor = new InterceptorRef(ref);
@@ -1206,6 +1214,8 @@
 
     /**
      * Intercepts outputs added to this node in the future (i.e. intercepts 
outputs added after this statement)
+     *
+     * @deprecated will be removed in Camel 2.0
      */
     public Type intercept(DelegateProcessor interceptor) {
         intercept(new InterceptorRef(interceptor));
@@ -1224,6 +1234,8 @@
 
     /**
      * Intercepts outputs added to this node in the future (i.e. intercepts 
outputs added after this statement)
+     *
+     * @deprecated will be removed in Camel 2.0
      */
     public void intercept(InterceptorType interceptor) {
         addOutput(interceptor);
@@ -1234,6 +1246,7 @@
      * Adds an interceptor around the whole of this nodes processing
      *
      * @param interceptor
+     * @deprecated will be removed in Camel 2.0
      */
     public void addInterceptor(InterceptorType interceptor) {
         interceptors.add(interceptor);
@@ -1243,6 +1256,7 @@
      * Adds an interceptor around the whole of this nodes processing
      *
      * @param interceptor
+     * @deprecated will be removed in Camel 2.0
      */
     public void addInterceptor(DelegateProcessor interceptor) {
         addInterceptor(new InterceptorRef(interceptor));
@@ -1331,6 +1345,9 @@
         return answer.when(predicate);
     }
 
+    /**
+     * @deprecated will be removed in Camel 2.0
+     */
     public Type interceptors(String... refs) {
         for (String ref : refs) {
             interceptor(ref);


Reply via email to