camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadr...@apache.org
Subject svn commit: r1104634 - /camel/trunk/camel-core/src/main/java/org/apache/camel/builder/DefaultErrorHandlerBuilder.java
Date Wed, 18 May 2011 00:03:28 GMT
Author: hadrian
Date: Wed May 18 00:03:28 2011
New Revision: 1104634

URL: http://svn.apache.org/viewvc?rev=1104634&view=rev
Log:
CAMEL-3931. Remove duplicate strategy field masking one with the same name in superclass

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/builder/DefaultErrorHandlerBuilder.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/builder/DefaultErrorHandlerBuilder.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/DefaultErrorHandlerBuilder.java?rev=1104634&r1=1104633&r2=1104634&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/builder/DefaultErrorHandlerBuilder.java
(original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/builder/DefaultErrorHandlerBuilder.java
Wed May 18 00:03:28 2011
@@ -41,7 +41,6 @@ import static org.apache.camel.builder.P
 public class DefaultErrorHandlerBuilder extends ErrorHandlerBuilderSupport {
 
     protected CamelLogger logger;
-    protected ExceptionPolicyStrategy exceptionPolicyStrategy = ErrorHandlerSupport.createDefaultExceptionPolicyStrategy();
     protected RedeliveryPolicy redeliveryPolicy;
     protected Processor onRedelivery;
     protected Predicate retryWhile;
@@ -231,16 +230,6 @@ public class DefaultErrorHandlerBuilder 
     }
 
     /**
-     * Sets the exception policy to use
-     *
-     * @return the builder
-     */
-    public DefaultErrorHandlerBuilder exceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy)
{
-        setExceptionPolicyStrategy(exceptionPolicyStrategy);
-        return this;
-    }
-
-    /**
      * Sets a processor that should be processed <b>before</b> a redelivery attempt.
      * <p/>
      * Can be used to change the {@link org.apache.camel.Exchange} <b>before</b>
its being redelivered.
@@ -326,18 +315,6 @@ public class DefaultErrorHandlerBuilder 
         this.logger = logger;
     }
 
-    /**
-     * Sets the exception policy strategy to use for resolving the {@link org.apache.camel.model.OnExceptionDefinition}
-     * to use for a given thrown exception
-     */
-    public ExceptionPolicyStrategy getExceptionPolicyStrategy() {
-        return exceptionPolicyStrategy;
-    }
-
-    public void setExceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy)
{
-        this.exceptionPolicyStrategy = exceptionPolicyStrategy;
-    }
-
     public Processor getOnRedelivery() {
         return onRedelivery;
     }



Mime
View raw message