camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [3/3] camel git commit: CAMEL-7999: Explain eip / component doc fallback to look for component in the Camel registry so we can find eg activemq as the jms component etc.
Date Wed, 04 Feb 2015 06:47:50 GMT
CAMEL-7999: Explain eip / component doc fallback to look for component in the Camel registry
so we can find eg activemq as the jms component etc.


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

Branch: refs/heads/master
Commit: 99804d8fe9180569eb2f0fbc1138ed9b58d4d903
Parents: 984a476
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Wed Feb 4 07:47:53 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Wed Feb 4 07:47:53 2015 +0100

----------------------------------------------------------------------
 .../org/apache/camel/impl/DefaultCamelContext.java  | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/99804d8f/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java b/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
index eb4b613..0226067 100644
--- a/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
+++ b/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
@@ -1206,8 +1206,12 @@ public class DefaultCamelContext extends ServiceSupport implements
ModelCamelCon
                     IOHelper.close(inputStream);
                 }
             }
-            return null;
-
+            // special for ActiveMQ as it is really just JMS
+            if ("ActiveMQComponent".equals(clazz.getSimpleName())) {
+                return getComponentDocumentation("jms");
+            } else {
+                return null;
+            }
         } catch (ClassNotFoundException e) {
             return null;
         }
@@ -1243,8 +1247,12 @@ public class DefaultCamelContext extends ServiceSupport implements
ModelCamelCon
                     IOHelper.close(inputStream);
                 }
             }
-            return null;
-
+            // special for ActiveMQ as it is really just JMS
+            if ("ActiveMQComponent".equals(clazz.getSimpleName())) {
+                return getComponentParameterJsonSchema("jms");
+            } else {
+                return null;
+            }
         } catch (ClassNotFoundException e) {
             return null;
         }


Mime
View raw message