This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.commons.classloader-1.2.2 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-classloader.git
commit 83f1bd2825dd58b5f5870a8bf058d583f4a99d20 Author: Felix Meschberger <[email protected]> AuthorDate: Fri Nov 12 09:41:36 2010 +0000 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). git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/classloader@1034310 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/sling/commons/classloader/impl/Activator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/commons/classloader/impl/Activator.java b/src/main/java/org/apache/sling/commons/classloader/impl/Activator.java index 9ed2e91..62095e0 100644 --- a/src/main/java/org/apache/sling/commons/classloader/impl/Activator.java +++ b/src/main/java/org/apache/sling/commons/classloader/impl/Activator.java @@ -110,7 +110,8 @@ public class Activator implements SynchronousBundleListener, BundleActivator { 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 { -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
