|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gemini.blueprint.util.OsgiBundleUtils
public abstract class OsgiBundleUtils
Utility class for OSGi Bundles. Provides convenience methods for
interacting with a Bundle object.
OsgiStringUtils| Constructor Summary | |
|---|---|
OsgiBundleUtils()
|
|
| Method Summary | |
|---|---|
static org.osgi.framework.Bundle |
findBundleBySymbolicName(org.osgi.framework.BundleContext bundleContext,
String symbolicName)
Finds an install bundle based by its symbolic name. |
static org.osgi.framework.BundleContext |
getBundleContext(org.osgi.framework.Bundle bundle)
Returns the underlying BundleContext for the given Bundle. |
static org.osgi.framework.Version |
getBundleVersion(org.osgi.framework.Bundle bundle)
Returns the given bundle version. |
static org.osgi.framework.Version |
getHeaderAsVersion(org.osgi.framework.Bundle bundle,
String header)
Returns the version for a given bundle manifest header. |
static boolean |
isBundleActive(org.osgi.framework.Bundle bundle)
Indicates if the given bundle is active or not. |
static boolean |
isBundleLazyActivated(org.osgi.framework.Bundle bundle)
Indicates if the given bundle is lazily activated or not. |
static boolean |
isBundleResolved(org.osgi.framework.Bundle bundle)
Indicates if the given bundle is resolved or not. |
static boolean |
isFragment(org.osgi.framework.Bundle bundle)
Indicates if the given bundle is a fragment or not. |
static boolean |
isSystemBundle(org.osgi.framework.Bundle bundle)
Indicates if the given bundle is the system bundle or not. |
| 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 org.osgi.framework.BundleContext getBundleContext(org.osgi.framework.Bundle bundle)
bundle - OSGi bundle
public static boolean isBundleActive(org.osgi.framework.Bundle bundle)
bundle - OSGi bundle
Bundle.ACTIVEpublic static boolean isBundleResolved(org.osgi.framework.Bundle bundle)
bundle - OSGi bundle
Bundle.RESOLVEDpublic static boolean isBundleLazyActivated(org.osgi.framework.Bundle bundle)
bundle - OSGi bundle
public static boolean isFragment(org.osgi.framework.Bundle bundle)
bundle - OSGi bundle
Constants.FRAGMENT_HOSTpublic static boolean isSystemBundle(org.osgi.framework.Bundle bundle)
bundle - OSGi bundle
public static org.osgi.framework.Version getBundleVersion(org.osgi.framework.Bundle bundle)
bundle - OSGi bundle
Constants.BUNDLE_VERSION
public static org.osgi.framework.Bundle findBundleBySymbolicName(org.osgi.framework.BundleContext bundleContext,
String symbolicName)
bundleContext - OSGi bundle contextsymbolicName - bundle symbolic name
null if none is
found)
public static org.osgi.framework.Version getHeaderAsVersion(org.osgi.framework.Bundle bundle,
String header)
bundle - OSGi bundleheader - bundle manifest header
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||