public abstract class OsgiPlatformDetector extends Object
Constructor and Description |
---|
OsgiPlatformDetector() |
Modifier and Type | Method and Description |
---|---|
static String |
getVersion(org.osgi.framework.BundleContext bundleContext)
Returns the OSGi platform version (using the manifest entries from the system bundle).
|
static boolean |
isEquinox(org.osgi.framework.BundleContext bundleContext)
Returns true if the given bundle context belongs to the Equinox platform.
|
static boolean |
isFelix(org.osgi.framework.BundleContext bundleContext)
Returns true if the given bundle context belongs to the Felix platform.
|
static boolean |
isKnopflerfish(org.osgi.framework.BundleContext bundleContext)
Returns true if the given bundle context belongs to the Knopflerfish platform.
|
static boolean |
isR41()
Determines if the current running platform implements OSGi Release 4.1 API or not.
|
static boolean |
isR42()
Determines if the current running platform implements OSGi Release 4.2 API or not.
|
public static boolean isEquinox(org.osgi.framework.BundleContext bundleContext)
bundleContext
- OSGi bundle contextpublic static boolean isKnopflerfish(org.osgi.framework.BundleContext bundleContext)
bundleContext
- OSGi bundle contextpublic static boolean isFelix(org.osgi.framework.BundleContext bundleContext)
bundleContext
- OSGi bundle contextpublic static String getVersion(org.osgi.framework.BundleContext bundleContext)
bundleContext
- bundle context to inspectpublic static boolean isR41()
public static boolean isR42()
Copyright © 2006–2013. All rights reserved.