felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r372828 - /incubator/felix/sandbox/rickhall/framework-branch/src/main/java/org/apache/felix/framework/ServiceRegistry.java
Date Fri, 27 Jan 2006 12:54:36 GMT
Author: rickhall
Date: Fri Jan 27 04:54:26 2006
New Revision: 372828

URL: http://svn.apache.org/viewcvs?rev=372828&view=rev
Log:
Applied bug patch from trunk.

Modified:
    incubator/felix/sandbox/rickhall/framework-branch/src/main/java/org/apache/felix/framework/ServiceRegistry.java

Modified: incubator/felix/sandbox/rickhall/framework-branch/src/main/java/org/apache/felix/framework/ServiceRegistry.java
URL: http://svn.apache.org/viewcvs/incubator/felix/sandbox/rickhall/framework-branch/src/main/java/org/apache/felix/framework/ServiceRegistry.java?rev=372828&r1=372827&r2=372828&view=diff
==============================================================================
--- incubator/felix/sandbox/rickhall/framework-branch/src/main/java/org/apache/felix/framework/ServiceRegistry.java
(original)
+++ incubator/felix/sandbox/rickhall/framework-branch/src/main/java/org/apache/felix/framework/ServiceRegistry.java
Fri Jan 27 04:54:26 2006
@@ -84,7 +84,8 @@
     /**
      * This method retrieves all services registrations for the specified
      * bundle and invokes <tt>ServiceRegistration.unregister()</tt> on each
-     * one.
+     * one. This method is only called be the framework to clean up after
+     * a stopped bundle.
      * @param bundle the bundle whose services should be unregistered.
     **/
     public void unregisterServices(Bundle bundle)
@@ -101,6 +102,9 @@
         {
             regs[i].unregister();
         }
+
+        // Now remove the bundle itself.
+        m_serviceRegsMap.remove(bundle);
     }
 
     public synchronized List getServiceReferences(String className, Filter filter)



Mime
View raw message