public abstract class OsgiUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
GET_BUNDLE_CONTEXT_METHOD |
private static java.lang.String |
GET_CONTEXT_METHOD |
| Constructor and Description |
|---|
OsgiUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.osgi.framework.BundleContext |
getBundleContext(org.osgi.framework.Bundle bundle)
Returns the underlying BundleContext for the given Bundle.
|
private static org.osgi.framework.BundleContext |
getBundleContextWithPrivileges(org.osgi.framework.Bundle bundle) |
static java.lang.String |
getPlatformName(org.osgi.framework.BundleContext bundleContext) |
private static boolean |
isEquinox(org.osgi.framework.BundleContext bundleContext) |
private static boolean |
isFelix(org.osgi.framework.BundleContext bundleContext) |
private static boolean |
isKnopflerfish(org.osgi.framework.BundleContext bundleContext) |
private static boolean |
isPlatformVendorMatch(org.osgi.framework.BundleContext bundleContext,
java.lang.String vendorString) |
private static final java.lang.String GET_BUNDLE_CONTEXT_METHOD
private static final java.lang.String GET_CONTEXT_METHOD
public static java.lang.String getPlatformName(org.osgi.framework.BundleContext bundleContext)
private static boolean isPlatformVendorMatch(org.osgi.framework.BundleContext bundleContext,
java.lang.String vendorString)
private static boolean isEquinox(org.osgi.framework.BundleContext bundleContext)
private static boolean isKnopflerfish(org.osgi.framework.BundleContext bundleContext)
private static boolean isFelix(org.osgi.framework.BundleContext bundleContext)
public static org.osgi.framework.BundleContext getBundleContext(org.osgi.framework.Bundle bundle)
bundle - OSGi bundleprivate static org.osgi.framework.BundleContext getBundleContextWithPrivileges(org.osgi.framework.Bundle bundle)