incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r1034310 - /sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/Activator.java
Date Fri, 12 Nov 2010 09:41:37 GMT
Author: fmeschbe
Date: Fri Nov 12 09:41:36 2010
New Revision: 1034310

URL: http://svn.apache.org/viewvc?rev=1034310&view=rev
Log:
SLING-1874 cycle the class loader manager service when a used bundle has a RESOVLED event
which is sent when the wiring of the bundle has been refreshed (no UNRESOLED event is sent
in this case).

Modified:
    sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/Activator.java

Modified: sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/Activator.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/Activator.java?rev=1034310&r1=1034309&r2=1034310&view=diff
==============================================================================
--- sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/Activator.java
(original)
+++ sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/Activator.java
Fri Nov 12 09:41:36 2010
@@ -110,7 +110,8 @@ public class Activator implements Synchr
     public void bundleChanged(BundleEvent event) {
         final boolean reload;
         if ( event.getType() == BundleEvent.RESOLVED ) {
-            reload = this.service.hasUnresolvedPackages(event.getBundle());
+            reload = this.service.isBundleUsed(event.getBundle().getBundleId())
+                || this.service.hasUnresolvedPackages(event.getBundle());
         } else if ( event.getType() == BundleEvent.UNRESOLVED ) {
             reload = this.service.isBundleUsed(event.getBundle().getBundleId());
         } else {



Mime
View raw message