felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject svn commit: r647608 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleImpl.java
Date Sun, 13 Apr 2008 19:03:06 GMT
Author: pauls
Date: Sun Apr 13 12:03:02 2008
New Revision: 647608

URL: http://svn.apache.org/viewvc?rev=647608&view=rev
Log:
Cache the bundle id in the BundleImpl class to improve performance.

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleImpl.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleImpl.java?rev=647608&r1=647607&r2=647608&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleImpl.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleImpl.java Sun Apr
13 12:03:02 2008
@@ -27,6 +27,7 @@
 
 class BundleImpl extends FelixBundle
 {
+    private final long m_id;
     private Felix m_felix = null;
     private BundleInfo m_info = null;
 
@@ -34,6 +35,7 @@
     {
         m_felix = felix;
         m_info = info;
+        m_id = info.getBundleId();
     }
 
     /* package private */ BundleInfo getInfo()
@@ -57,7 +59,7 @@
 
     public long getBundleId()
     {
-        return m_info.getBundleId();
+        return m_id;
     }
 
     public URL getEntry(String name)



Mime
View raw message