org.eclipse.gemini.blueprint.io.internal
Class OsgiUtils
java.lang.Object
org.eclipse.gemini.blueprint.io.internal.OsgiUtils
public abstract class OsgiUtils
- extends Object
Simple utils class for the IO package. This method might contain util methods
from other packages since it the IO package needs to be stand-alone.
- Author:
- Costin Leau
Method Summary |
static org.osgi.framework.BundleContext |
getBundleContext(org.osgi.framework.Bundle bundle)
Returns the underlying BundleContext for the given Bundle. |
static String |
getPlatformName(org.osgi.framework.BundleContext bundleContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OsgiUtils
public OsgiUtils()
getPlatformName
public static String getPlatformName(org.osgi.framework.BundleContext bundleContext)
getBundleContext
public static org.osgi.framework.BundleContext getBundleContext(org.osgi.framework.Bundle bundle)
- Returns the underlying BundleContext for the given Bundle. This uses
reflection and highly dependent of the OSGi implementation. Should not be
used if OSGi 4.1 is being used.
Note: Identical to the util found in Spring-DM core
- Parameters:
bundle
- OSGi bundle
- Returns:
- the bundle context for this bundle
Copyright © 2006-2012. All Rights Reserved.