You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by gu...@apache.org on 2013/08/26 14:47:31 UTC

svn commit: r1517529 - in /felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal: linker/ManagedType.java processor/QueuingActivationProcessor.java

Author: guillaume
Date: Mon Aug 26 12:47:30 2013
New Revision: 1517529

URL: http://svn.apache.org/r1517529
Log:
Add some meaningful descriptions when submitting jobs to the QueueService

Modified:
    felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/linker/ManagedType.java
    felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/processor/QueuingActivationProcessor.java

Modified: felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/linker/ManagedType.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/linker/ManagedType.java?rev=1517529&r1=1517528&r2=1517529&view=diff
==============================================================================
--- felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/linker/ManagedType.java (original)
+++ felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/linker/ManagedType.java Mon Aug 26 12:47:30 2013
@@ -232,7 +232,7 @@ public class ManagedType implements Fact
 
                         return null;
                     }
-                });
+                }, format("Building Factory for type %s", m_declaration.getComponentName()));
                 // Return something, otherwise, ServiceTracker think that we're not interested
                 // in this service and never call us back on disposal.
                 return service;
@@ -332,7 +332,9 @@ public class ManagedType implements Fact
 
                         return null;
                     }
-                });
+                }, format("Creating component instance of type %s (declaration from bundle %d)",
+                          m_declaration.getComponentName(),
+                          reference.getBundle().getBundleId()));
             }
 
             return null;

Modified: felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/processor/QueuingActivationProcessor.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/processor/QueuingActivationProcessor.java?rev=1517529&r1=1517528&r2=1517529&view=diff
==============================================================================
--- felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/processor/QueuingActivationProcessor.java (original)
+++ felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/processor/QueuingActivationProcessor.java Mon Aug 26 12:47:30 2013
@@ -19,6 +19,8 @@
 
 package org.apache.felix.ipojo.extender.internal.processor;
 
+import static java.lang.String.format;
+
 import org.apache.felix.ipojo.extender.internal.BundleProcessor;
 import org.apache.felix.ipojo.extender.internal.ReferenceableCallable;
 import org.apache.felix.ipojo.extender.queue.QueueService;
@@ -62,12 +64,14 @@ public class QueuingActivationProcessor 
      * @param bundle the bundle
      */
     public void activate(final Bundle bundle) {
-        m_queueService.submit(new ReferenceableCallable<Boolean>(bundle) {
-            public Boolean call() throws Exception {
-                QueuingActivationProcessor.super.activate(bundle);
-                return true;
-            }
-        });
+        m_queueService.submit(
+                new ReferenceableCallable<Boolean>(bundle) {
+                    public Boolean call() throws Exception {
+                        QueuingActivationProcessor.super.activate(bundle);
+                        return true;
+                    }
+                },
+                format("Bundle %d being activated", bundle.getBundleId()));
     }
 
 }