|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.osgi.util.OsgiBundleUtils
public abstract class OsgiBundleUtils
Utility class for OSGi Bundle
s.
Constructor Summary | |
---|---|
OsgiBundleUtils()
|
Method Summary | |
---|---|
static Bundle |
findBundleBySymbolicName(BundleContext bundleContext,
String symbolicName)
|
static BundleContext |
getBundleContext(Bundle bundle)
Return the underlying BundleContext for the given Bundle. |
static Version |
getBundleVersion(Bundle bundle)
|
static Version |
getHeaderAsVersion(Bundle bundle,
String header)
Return the version for a given bundle manifest header. |
static boolean |
isBundleActive(Bundle bundle)
Return true if the given bundle is active or not. |
static boolean |
isBundleResolved(Bundle bundle)
|
static boolean |
isFragment(Bundle bundle)
|
static boolean |
isSystemBundle(Bundle bundle)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OsgiBundleUtils()
Method Detail |
---|
public static BundleContext getBundleContext(Bundle bundle)
bundle
-
public static boolean isBundleActive(Bundle bundle)
bundle
-
public static boolean isBundleResolved(Bundle bundle)
public static boolean isFragment(Bundle bundle)
public static boolean isSystemBundle(Bundle bundle)
public static Version getBundleVersion(Bundle bundle)
public static Bundle findBundleBySymbolicName(BundleContext bundleContext, String symbolicName)
public static Version getHeaderAsVersion(Bundle bundle, String header)
bundle
- OSGi bundleheader
- bundle manifest header
IllegalArgumentException
- if an illegal String/number if used for
constructing the version.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |