org.springframework.osgi.util
Class OsgiPlatformDetector
java.lang.Object
org.springframework.osgi.util.OsgiPlatformDetector
public abstract class OsgiPlatformDetector
- extends Object
Regrettably we sometimes need to know which Osgi platform we are currently
running on in order to work around quirks and differences in the different
implementations.
Currently we can detect equinox, knopflerfish, and felix.
- Author:
- Adrian Colyer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OsgiPlatformDetector
public OsgiPlatformDetector()
isEquinox
public static boolean isEquinox(BundleContext aContext)
isKnopflerfish
public static boolean isKnopflerfish(BundleContext aContext)
isFelix
public static boolean isFelix(BundleContext aContext)
getVersion
public static String getVersion(BundleContext ctx)
- Return the OSGi platform version (using the manifest entries from the
system bundle). Can be null or empty.
Subclasses should extend this if a different detection mechanism is
required.
- Parameters:
ctx
- bundle context to inspect
- Returns:
- system bundle version.
Copyright © 2006-2007 Spring Framework. All Rights Reserved.