camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/3] git commit: CAMEL-7200: get component doc to work in OSGi.
Date Wed, 12 Feb 2014 16:35:10 GMT
Updated Branches:
  refs/heads/camel-2.12.x c09ae2fe5 -> a53021617
  refs/heads/master bc73f1d9a -> 78a850ccc


CAMEL-7200: get component doc to work in OSGi.


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

Branch: refs/heads/master
Commit: 78a850cccc9a17cb3811c489579957db111463ac
Parents: bc73f1d
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Wed Feb 12 17:34:49 2014 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Wed Feb 12 17:34:49 2014 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/impl/DefaultCamelContext.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/78a850cc/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 69bf5de..0f5e0c8 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
@@ -1029,7 +1029,9 @@ public class DefaultCamelContext extends ServiceSupport implements ModelCamelCon
 
     public String getComponentDocumentation(String componentName) throws IOException {
         String path = CamelContextHelper.COMPONENT_DOCUMENTATION_PREFIX + componentName +
"/" + componentName + ".html";
-        InputStream inputStream = getClassResolver().loadResourceAsStream(path);
+        ClassResolver resolver = getClassResolver();
+        InputStream inputStream = resolver.loadResourceAsStream(path);
+        log.debug("Loading component documentation for: {} using class resolver: {} ->
{}", new Object[]{componentName, resolver, inputStream});
         if (inputStream != null) {
             try {
                 return IOHelper.loadText(inputStream);


Mime
View raw message