Add some meaningful descriptions when submitting jobs to the QueueService
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1517529 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/linker/ManagedType.java b/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/linker/ManagedType.java
index e7ebd59..c0b09fc 100644
--- a/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/linker/ManagedType.java
+++ b/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/linker/ManagedType.java
@@ -232,7 +232,7 @@
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 @@
return null;
}
- });
+ }, format("Creating component instance of type %s (declaration from bundle %d)",
+ m_declaration.getComponentName(),
+ reference.getBundle().getBundleId()));
}
return null;
diff --git a/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/processor/QueuingActivationProcessor.java b/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/processor/QueuingActivationProcessor.java
index 13561a3..ea1cac1 100644
--- a/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/processor/QueuingActivationProcessor.java
+++ b/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/extender/internal/processor/QueuingActivationProcessor.java
@@ -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 @@
* @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()));
}
}