aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1071719 - /aries/branches/0.2-incubating-RCx/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java
Date Thu, 17 Feb 2011 17:36:00 GMT
Author: gnodet
Date: Thu Feb 17 17:35:59 2011
New Revision: 1071719

URL: http://svn.apache.org/viewvc?rev=1071719&view=rev
Log:
[ARIES-435] Fix a problem when the bundle is being stopped while the blueprint container is
being created

Modified:
    aries/branches/0.2-incubating-RCx/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java

Modified: aries/branches/0.2-incubating-RCx/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java
URL: http://svn.apache.org/viewvc/aries/branches/0.2-incubating-RCx/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java?rev=1071719&r1=1071718&r2=1071719&view=diff
==============================================================================
--- aries/branches/0.2-incubating-RCx/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java
(original)
+++ aries/branches/0.2-incubating-RCx/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java
Thu Feb 17 17:35:59 2011
@@ -315,7 +315,8 @@ public class BlueprintContainerImpl impl
                         instantiateEagerComponents();
 
                         // Register the BlueprintContainer in the OSGi registry
-                        if (registration == null) {
+                        int bs = bundleContext.getBundle().getState();
+                        if (registration == null && (bs == Bundle.ACTIVE || bs ==
Bundle.STARTING)) {
                             Properties props = new Properties();
                             props.put(BlueprintConstants.CONTAINER_SYMBOLIC_NAME_PROPERTY,
                                       bundleContext.getBundle().getSymbolicName());



Mime
View raw message