felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1101356 - /felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/index/ServiceRegistryCache.java
Date Tue, 10 May 2011 08:07:08 GMT
Author: marrs
Date: Tue May 10 08:07:08 2011
New Revision: 1101356

URL: http://svn.apache.org/viewvc?rev=1101356&view=rev
Log:
Code was being invoked too often (calling a static method from each and every instance, instead
of just once).

Modified:
    felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/index/ServiceRegistryCache.java

Modified: felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/index/ServiceRegistryCache.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/index/ServiceRegistryCache.java?rev=1101356&r1=1101355&r2=1101356&view=diff
==============================================================================
--- felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/index/ServiceRegistryCache.java
(original)
+++ felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/index/ServiceRegistryCache.java
Tue May 10 08:07:08 2011
@@ -80,10 +80,8 @@ public class ServiceRegistryCache implem
                 m_arrayVersion = m_currentVersion;
             }
         }
-        for (int i = 0; i < m_interceptors.length; i++) {
-            BundleContextInterceptor bundleContextInterceptor = m_interceptors[i];
-            bundleContextInterceptor.serviceChanged(event);
-        }
+        
+        serviceChangedForFilterIndices(event);
     }
     
     /** Creates an interceptor for a bundle context that uses our cache. */



Mime
View raw message