Author: cschneider
Date: Thu Sep 15 11:50:40 2011
New Revision: 1171063

URL: http://svn.apache.org/viewvc?rev=1171063&view=rev
Log:
Fix for compile error

Modified:
    
camel/trunk/components/camel-spring/src/main/java/org/apache/camel/spring/spi/SpringTransactionPolicy.java

Modified: 
camel/trunk/components/camel-spring/src/main/java/org/apache/camel/spring/spi/SpringTransactionPolicy.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-spring/src/main/java/org/apache/camel/spring/spi/SpringTransactionPolicy.java?rev=1171063&r1=1171062&r2=1171063&view=diff
==============================================================================
--- 
camel/trunk/components/camel-spring/src/main/java/org/apache/camel/spring/spi/SpringTransactionPolicy.java
 (original)
+++ 
camel/trunk/components/camel-spring/src/main/java/org/apache/camel/spring/spi/SpringTransactionPolicy.java
 Thu Sep 15 11:50:40 2011
@@ -67,7 +67,7 @@ public class SpringTransactionPolicy imp
         // if we should not support this we do not need to wrap the processor 
as we only need one transacted error handler
 
         // find the existing error handler builder
-        ErrorHandlerFactory builder = 
routeContext.getRoute().getErrorHandlerBuilder();
+        ErrorHandlerBuilder builder = 
(ErrorHandlerBuilder)routeContext.getRoute().getErrorHandlerBuilder();
 
         // check if its a ref if so then do a lookup
         if (builder instanceof ErrorHandlerBuilderRef) {
@@ -79,7 +79,7 @@ public class SpringTransactionPolicy imp
             // and if so then we can safely replace that with our transacted 
error handler
             if (ErrorHandlerBuilderRef.isErrorHandlerBuilderConfigured(ref)) {
                 LOG.debug("Looking up ErrorHandlerBuilder with ref: {}", ref);
-                builder = 
ErrorHandlerBuilderRef.lookupErrorHandlerBuilder(routeContext, ref);
+                builder = 
(ErrorHandlerBuilder)ErrorHandlerBuilderRef.lookupErrorHandlerBuilder(routeContext,
 ref);
             }
         }
 


Reply via email to