camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r697666 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java
Date Mon, 22 Sep 2008 06:18:47 GMT
Author: davsclaus
Date: Sun Sep 21 23:18:47 2008
New Revision: 697666

URL: http://svn.apache.org/viewvc?rev=697666&view=rev
Log:
CAMEL-919: Reverted back the routes, that is used by BAM. Thanks Willem.

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

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java?rev=697666&r1=697665&r2=697666&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java
Sun Sep 21 23:18:47 2008
@@ -16,6 +16,7 @@
  */
 package org.apache.camel.builder;
 
+import java.util.ArrayList;
 import java.util.List;
 import java.util.concurrent.atomic.AtomicBoolean;
 
@@ -43,6 +44,7 @@
 public abstract class RouteBuilder extends BuilderSupport implements Routes {
     private AtomicBoolean initialized = new AtomicBoolean(false);
     private RoutesType routeCollection = new RoutesType();
+    private List<Route> routes = new ArrayList<Route>();
 
     public RouteBuilder() {
         this(null);
@@ -151,7 +153,7 @@
      */
     public List<Route> getRouteList() throws Exception {
         checkInitialized();
-        return null;
+        return routes;
     }
 
     @Override
@@ -177,11 +179,11 @@
                 setErrorHandlerBuilder(camelContext.getErrorHandlerBuilder());
             }
             configure();
-            populateRoutes();
+            populateRoutes(routes);
         }
     }
 
-    protected void populateRoutes() throws Exception {
+    protected void populateRoutes(List<Route> routes) throws Exception {
         CamelContext camelContext = getContext();
         if (camelContext == null) {
             throw new IllegalArgumentException("No CamelContext has been injected!");



Mime
View raw message