incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r981860 - /sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/loader/Loader.java
Date Tue, 03 Aug 2010 13:09:30 GMT
Author: bdelacretaz
Date: Tue Aug  3 13:09:30 2010
New Revision: 981860

URL: http://svn.apache.org/viewvc?rev=981860&view=rev
Log:
SLING-1626 - register namespaces for INSTALLED bundles as well

Modified:
    sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/loader/Loader.java

Modified: sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/loader/Loader.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/loader/Loader.java?rev=981860&r1=981859&r2=981860&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/loader/Loader.java
(original)
+++ sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/internal/loader/Loader.java
Tue Aug  3 13:09:30 2010
@@ -68,9 +68,8 @@ public class Loader implements Namespace
 
         // scan existing bundles
         for (Bundle bundle : existingBundles) {
-            if ((bundle.getState() & (Bundle.INSTALLED | Bundle.UNINSTALLED)) == 0) {
-                // load content for bundles which are neither INSTALLED nor
-                // UNINSTALLED
+            // Ignore bundles which are in an inactive state
+            if ((bundle.getState() & (Bundle.UNINSTALLED | Bundle.STOP_TRANSIENT | Bundle.STOPPING
)) == 0) {
                 registerBundle(bundle);
             }
         }



Mime
View raw message