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 2013/08/26 14:32:18 UTC

[3/4] git commit: CAMEL-6291: Fixed to not share the routes between the s as that can cause side-effects.

CAMEL-6291: Fixed <routeContextRef> to not share the routes between the <camelContext>s as that can cause side-effects.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/90af871d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/90af871d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/90af871d

Branch: refs/heads/master
Commit: 90af871ddfd2e65b31b584147d701ab79680542f
Parents: 8a90b27
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Aug 26 14:31:26 2013 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Aug 26 14:31:26 2013 +0200

----------------------------------------------------------------------
 .../org/apache/camel/model/RouteContextRefDefinitionHelper.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/90af871d/camel-core/src/main/java/org/apache/camel/model/RouteContextRefDefinitionHelper.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/model/RouteContextRefDefinitionHelper.java b/camel-core/src/main/java/org/apache/camel/model/RouteContextRefDefinitionHelper.java
index 0f69104..08617ae 100644
--- a/camel-core/src/main/java/org/apache/camel/model/RouteContextRefDefinitionHelper.java
+++ b/camel-core/src/main/java/org/apache/camel/model/RouteContextRefDefinitionHelper.java
@@ -40,6 +40,8 @@ public final class RouteContextRefDefinitionHelper {
 
     private static JAXBContext jaxbContext;
 
+    private RouteContextRefDefinitionHelper() {
+    }
 
     /**
      * Lookup the routes from the {@link RouteContextRefDefinition}.
@@ -54,6 +56,7 @@ public final class RouteContextRefDefinitionHelper {
      * @param ref          the id of the {@link RouteContextRefDefinition} to lookup and get the rotues.
      * @return the routes.
      */
+    @SuppressWarnings("unchecked")
     public static synchronized List<RouteDefinition> lookupRoutes(CamelContext camelContext, String ref) {
         ObjectHelper.notNull(camelContext, "camelContext");
         ObjectHelper.notNull(ref, "ref");
@@ -131,5 +134,4 @@ public final class RouteContextRefDefinitionHelper {
         return null;
     }
 
-
 }