camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r572367 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultComponentResolver.java
Date Mon, 03 Sep 2007 15:44:21 GMT
Author: jstrachan
Date: Mon Sep  3 08:44:20 2007
New Revision: 572367

URL: http://svn.apache.org/viewvc?rev=572367&view=rev
Log:
added some more debug logging for CAMEL-134

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultComponentResolver.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultComponentResolver.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultComponentResolver.java?rev=572367&r1=572366&r2=572367&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultComponentResolver.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultComponentResolver.java
Mon Sep  3 08:44:20 2007
@@ -43,6 +43,9 @@
         Object bean = null;
         try {
             bean = context.getRegistry().lookup(name);
+            if (LOG.isDebugEnabled()) {
+                LOG.debug("Found component: " + name + " in registry: " + bean);
+            }
         }
         catch (Exception e) {
             LOG.debug("Ignored error looking up bean: " + name + ". Error: " + e);
@@ -62,6 +65,9 @@
         } catch (Throwable e) {
             throw new IllegalArgumentException("Invalid URI, no Component registered for
scheme : " 
                                                + name, e);
+        }
+        if (LOG.isDebugEnabled()) {
+            LOG.debug("Found component: " + name + " via type: " + type.getName() + " via
" + COMPONENT_FACTORY.getPath());
         }
         if (type == null) {
             return null;



Mime
View raw message