You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2011/01/06 13:49:35 UTC

svn commit: r1055858 - in /camel/trunk/camel-core/src/main/java/org/apache/camel/model: CatchDefinition.java TryDefinition.java

Author: davsclaus
Date: Thu Jan  6 12:49:35 2011
New Revision: 1055858

URL: http://svn.apache.org/viewvc?rev=1055858&view=rev
Log:
CAMEL-3506: @deprecated handled on doTry and doCatch as its seldom used and it complicates error handling

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/CatchDefinition.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/TryDefinition.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/CatchDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/CatchDefinition.java?rev=1055858&r1=1055857&r2=1055858&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/CatchDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/CatchDefinition.java Thu Jan  6 12:49:35 2011
@@ -175,7 +175,9 @@ public class CatchDefinition extends Pro
      *
      * @param handled  handled or not
      * @return the builder
+     * @deprecated will be removed in Camel 3.0
      */
+    @Deprecated
     public CatchDefinition handled(boolean handled) {
         Expression expression = ExpressionBuilder.constantExpression(Boolean.toString(handled));
         return handled(expression);
@@ -186,7 +188,9 @@ public class CatchDefinition extends Pro
      *
      * @param handled  predicate that determines true or false
      * @return the builder
+     * @deprecated will be removed in Camel 3.0
      */
+    @Deprecated
     public CatchDefinition handled(Predicate handled) {
         setHandledPolicy(handled);
         return this;
@@ -197,7 +201,9 @@ public class CatchDefinition extends Pro
      *
      * @param handled  expression that determines true or false
      * @return the builder
+     * @deprecated will be removed in Camel 3.0
      */
+    @Deprecated
     public CatchDefinition handled(Expression handled) {
         setHandledPolicy(toPredicate(handled));
         return this;

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/TryDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/TryDefinition.java?rev=1055858&r1=1055857&r2=1055858&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/TryDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/TryDefinition.java Thu Jan  6 12:49:35 2011
@@ -174,7 +174,9 @@ public class TryDefinition extends Outpu
      *
      * @param handled  handled or not
      * @return the builder
+     * @deprecated will be removed in Camel 3.0
      */
+    @Deprecated
     public TryDefinition handled(boolean handled) {
         Expression expression = ExpressionBuilder.constantExpression(Boolean.toString(handled));
         return handled(expression);
@@ -185,7 +187,9 @@ public class TryDefinition extends Outpu
      *
      * @param handled  predicate that determines true or false
      * @return the builder
+     * @deprecated will be removed in Camel 3.0
      */
+    @Deprecated
     public TryDefinition handled(Predicate handled) {
         // we must use a delegate so we can use the fluent builder based on TryDefinition
         // to configure all with try .. catch .. finally
@@ -203,7 +207,9 @@ public class TryDefinition extends Outpu
      *
      * @param handled  expression that determines true or false
      * @return the builder
+     * @deprecated will be removed in Camel 3.0
      */
+    @Deprecated
     public TryDefinition handled(Expression handled) {
         return handled(toPredicate(handled));
     }