commit | f312b56b8bf38fce3b8b7e5102ba563737771181 | [log] [tgz] |
---|---|---|
author | Karl Pauls <pauls@apache.org> | Sun Apr 13 19:03:02 2008 +0000 |
committer | Karl Pauls <pauls@apache.org> | Sun Apr 13 19:03:02 2008 +0000 |
tree | 11c1ad53fa457fbd3896db2777dd6b96965c40e1 | |
parent | b5f4b621c43eda02b48fc49ad4837c5e13077af6 [diff] |
Cache the bundle id in the BundleImpl class to improve performance. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@647608 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/BundleImpl.java b/framework/src/main/java/org/apache/felix/framework/BundleImpl.java index 4b835b0..391d996 100644 --- a/framework/src/main/java/org/apache/felix/framework/BundleImpl.java +++ b/framework/src/main/java/org/apache/felix/framework/BundleImpl.java
@@ -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)