|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.osgi.util.OsgiPlatformDetector
public abstract class OsgiPlatformDetector
Utility class that detects the running platform. Useful when certain quirks or tweaks have to made for a specific implementations. Currently we can detect Equinox, Knopflerfish and Felix platforms.
Constructor Summary | |
---|---|
OsgiPlatformDetector()
|
Method Summary | |
---|---|
static String |
getVersion(BundleContext bundleContext)
Returns the OSGi platform version (using the manifest entries from the system bundle). |
static boolean |
isEquinox(BundleContext bundleContext)
Returns true if the given bundle context belongs to the Equinox platform. |
static boolean |
isFelix(BundleContext bundleContext)
Returns true if the given bundle context belongs to the Felix platform. |
static boolean |
isKnopflerfish(BundleContext bundleContext)
Returns true if the given bundle context belongs to the Knopflerfish platform. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OsgiPlatformDetector()
Method Detail |
---|
public static boolean isEquinox(BundleContext bundleContext)
bundleContext
- OSGi bundle context
public static boolean isKnopflerfish(BundleContext bundleContext)
bundleContext
- OSGi bundle context
public static boolean isFelix(BundleContext bundleContext)
bundleContext
- OSGi bundle context
public static String getVersion(BundleContext bundleContext)
bundleContext
- bundle context to inspect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |