aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r1154405 - /aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java
Date Fri, 05 Aug 2011 22:40:04 GMT
Author: not
Date: Fri Aug  5 22:40:03 2011
New Revision: 1154405

URL: http://svn.apache.org/viewvc?rev=1154405&view=rev
Log:
ARIES-720 Improve the waiting for namespace handlers error message by adding the missing namespaces
into the message

Modified:
    aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java

Modified: aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java
URL: http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java?rev=1154405&r1=1154404&r2=1154405&view=diff
==============================================================================
--- aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java
(original)
+++ aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java
Fri Aug  5 22:40:03 2011
@@ -257,13 +257,15 @@ public class BlueprintContainerImpl impl
                     case WaitForNamespaceHandlers:
                     {
                         List<String> missing = new ArrayList<String>();
+                        List<URI> missingURIs = new ArrayList<URI>();
                         for (URI ns : namespaces) {
                             if (handlerSet.getNamespaceHandler(ns) == null) {
                                 missing.add("(&(" + Constants.OBJECTCLASS + "=" + NamespaceHandler.class.getName()
+ ")(" + NamespaceHandlerRegistryImpl.NAMESPACE + "=" + ns + "))");
+                                missingURIs.add(ns);
                             }
                         }
                         if (missing.size() > 0) {
-                            LOGGER.info("Bundle {} is waiting for namespace handlers ", bundleContext.getBundle().getSymbolicName(),
missing);
+                            LOGGER.info("Bundle {} is waiting for namespace handlers {}",
bundleContext.getBundle().getSymbolicName(), missingURIs);
                             eventDispatcher.blueprintEvent(new BlueprintEvent(BlueprintEvent.GRACE_PERIOD,
getBundleContext().getBundle(), getExtenderBundle(), missing.toArray(new String[missing.size()])));
                             return;
                         }



Mime
View raw message