You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ri...@apache.org on 2007/03/02 22:24:10 UTC

svn commit: r513962 - in /incubator/felix/trunk: framework/src/main/java/org/apache/felix/framework/BundleImpl.java org.osgi.core/src/main/java/org/osgi/framework/Bundle.java

Author: rickhall
Date: Fri Mar  2 13:24:09 2007
New Revision: 513962

URL: http://svn.apache.org/viewvc?view=rev&rev=513962
Log:
OSGi R4.1 adds a new Bundle.getBundleContext() method, which I needed
because I updated to the latest TCK, which requires it. As a quick hack
I added this method to Bundle and renamed the existing method in 
BundleImpl. We will replace my hacked Bundle with the officially updated 
Bundle source once OSGi releases it.

Modified:
    incubator/felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleImpl.java
    incubator/felix/trunk/org.osgi.core/src/main/java/org/osgi/framework/Bundle.java

Modified: incubator/felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleImpl.java
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleImpl.java?view=diff&rev=513962&r1=513961&r2=513962
==============================================================================
--- incubator/felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleImpl.java (original)
+++ incubator/felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleImpl.java Fri Mar  2 13:24:09 2007
@@ -52,7 +52,7 @@
         m_info = info;
     }
 
-    private BundleContext getContext()
+    public BundleContext getBundleContext()
     {
         return m_info.getContext();
     }

Modified: incubator/felix/trunk/org.osgi.core/src/main/java/org/osgi/framework/Bundle.java
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.osgi.core/src/main/java/org/osgi/framework/Bundle.java?view=diff&rev=513962&r1=513961&r2=513962
==============================================================================
--- incubator/felix/trunk/org.osgi.core/src/main/java/org/osgi/framework/Bundle.java (original)
+++ incubator/felix/trunk/org.osgi.core/src/main/java/org/osgi/framework/Bundle.java Fri Mar  2 13:24:09 2007
@@ -546,6 +546,8 @@
 	 */
 	public Dictionary getHeaders();
 
+	public BundleContext getBundleContext();
+
 	/**
 	 * Returns this bundle's identifier. The bundle is assigned a unique
 	 * identifier by the Framework when it is installed in the OSGi environment.