incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r581702 - /incubator/sling/trunk/jackrabbit-api/src/main/java/org/apache/sling/jcr/AbstractSlingRepository.java
Date Wed, 03 Oct 2007 19:31:03 GMT
Author: fmeschbe
Date: Wed Oct  3 12:31:02 2007
New Revision: 581702

URL: http://svn.apache.org/viewvc?rev=581702&view=rev
Log:
Remove as a bundle listener when the component is deactivated.

Modified:
    incubator/sling/trunk/jackrabbit-api/src/main/java/org/apache/sling/jcr/AbstractSlingRepository.java

Modified: incubator/sling/trunk/jackrabbit-api/src/main/java/org/apache/sling/jcr/AbstractSlingRepository.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/jackrabbit-api/src/main/java/org/apache/sling/jcr/AbstractSlingRepository.java?rev=581702&r1=581701&r2=581702&view=diff
==============================================================================
--- incubator/sling/trunk/jackrabbit-api/src/main/java/org/apache/sling/jcr/AbstractSlingRepository.java
(original)
+++ incubator/sling/trunk/jackrabbit-api/src/main/java/org/apache/sling/jcr/AbstractSlingRepository.java
Wed Oct  3 12:31:02 2007
@@ -319,6 +319,9 @@
      * @param componentContext
      */
     protected void deactivate(ComponentContext componentContext) {
+
+        componentContext.getBundleContext().removeBundleListener(this);
+
         if (this.poolManager != null) {
             this.poolManager.dispose();
             this.poolManager = null;



Mime
View raw message