Skip to content

Commit

Permalink
ARIES-720 Improve the waiting for namespace handlers error message by…
Browse files Browse the repository at this point in the history
… adding the missing namespaces into the message

git-svn-id: https://svn.apache.org/repos/asf/aries/trunk/blueprint/blueprint-core@1154405 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
NottyCode committed Aug 5, 2011
1 parent 2f9c753 commit dae0eba
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -257,13 +257,15 @@ private void doRun() {
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;
}
Expand Down

0 comments on commit dae0eba

Please sign in to comment.