incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From timothyjw...@apache.org
Subject svn commit: r905351 - /incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java
Date Mon, 01 Feb 2010 18:16:09 GMT
Author: timothyjward
Date: Mon Feb  1 18:16:09 2010
New Revision: 905351

URL: http://svn.apache.org/viewvc?rev=905351&view=rev
Log:
ARIES-133 : Improve debug when dependencies are unavailable

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

Modified: incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java?rev=905351&r1=905350&r2=905351&view=diff
==============================================================================
--- incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java
(original)
+++ incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java
Mon Feb  1 18:16:09 2010
@@ -30,6 +30,7 @@
 import java.security.PrivilegedExceptionAction;
 import java.security.ProtectionDomain;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.Dictionary;
@@ -272,8 +273,9 @@
                                     unregisterServices();
                                     untrackServiceReferences();
                                     destroyComponents();
-                                    LOGGER.error("Unable to start blueprint container for
bundle " + bundleContext.getBundle().getSymbolicName(), t);
-                                    eventDispatcher.blueprintEvent(new BlueprintEvent(BlueprintEvent.FAILURE,
getBundleContext().getBundle(), getExtenderBundle(), getMissingDependencies(), t));
+                                    String[] missingDependecies = getMissingDependencies();
+                                    LOGGER.error("Unable to start blueprint container for
bundle " + bundleContext.getBundle().getSymbolicName() + " due to unresolved dependencies
" + Arrays.asList(missingDependecies), t);
+                                    eventDispatcher.blueprintEvent(new BlueprintEvent(BlueprintEvent.FAILURE,
getBundleContext().getBundle(), getExtenderBundle(), missingDependecies, t));
                                 }
                             }
                         };



Mime
View raw message