camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jans...@apache.org
Subject [2/3] camel git commit: CAMEL-9526 - allow depends-on to contain multiple bean ids
Date Wed, 20 Jan 2016 20:25:39 GMT
CAMEL-9526 - allow depends-on to contain multiple bean ids


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

Branch: refs/heads/camel-2.16.x
Commit: ea6262b44c0d4d15f8662efc9351ebd79baf3e43
Parents: eaefb7c
Author: Jonathan Anstey <janstey@gmail.com>
Authored: Wed Jan 20 16:54:10 2016 -0330
Committer: Jonathan Anstey <janstey@gmail.com>
Committed: Wed Jan 20 16:55:06 2016 -0330

----------------------------------------------------------------------
 .../org/apache/camel/blueprint/handler/CamelNamespaceHandler.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/ea6262b4/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/handler/CamelNamespaceHandler.java
----------------------------------------------------------------------
diff --git a/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/handler/CamelNamespaceHandler.java
b/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/handler/CamelNamespaceHandler.java
index 393004a..e03cbc0 100644
--- a/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/handler/CamelNamespaceHandler.java
+++ b/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/handler/CamelNamespaceHandler.java
@@ -261,7 +261,7 @@ public class CamelNamespaceHandler implements NamespaceHandler {
         factory2.addDependsOn(propertiesComponentResolver.getId());
         // We need to add other components which the camel context dependsOn
         if (ObjectHelper.isNotEmpty(ccfb.getDependsOn())) {
-            factory2.addDependsOn(ccfb.getDependsOn());
+            factory2.setDependsOn(Arrays.asList(ccfb.getDependsOn().split(" |,")));
         }
         context.getComponentDefinitionRegistry().registerComponentDefinition(factory2);
 
@@ -342,6 +342,7 @@ public class CamelNamespaceHandler implements NamespaceHandler {
         try {
             binder = getJaxbContext().createBinder();
         } catch (JAXBException e) {
+
             throw new ComponentDefinitionException("Failed to create the JAXB binder : "
+ e, e);
         }
         Object value = parseUsingJaxb(element, context, binder);


Mime
View raw message