public class BundleUtils extends Object
| Constructor and Description |
|---|
BundleUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.osgi.framework.Bundle |
getBundle(org.osgi.framework.BundleContext bc,
String symbolicName)
Returns any bundle with the given symbolic name, or null if no such bundle exists.
|
static org.osgi.framework.Bundle |
getBundle(org.osgi.framework.BundleContext bc,
String symbolicName,
String version)
Returns the bundle with the given symbolic name and the given version, or null if no such
bundle exists
|
static org.osgi.framework.BundleContext |
getBundleContext(org.osgi.framework.Bundle bundle)
Discovers the bundle context for a bundle.
|
static List<org.osgi.framework.Bundle> |
getBundles(org.osgi.framework.BundleContext bc,
String symbolicName)
Returns a list of all bundles with the given symbolic name.
|
public static org.osgi.framework.BundleContext getBundleContext(org.osgi.framework.Bundle bundle)
bundle - the bundle from which the bundle context is neededpublic static org.osgi.framework.Bundle getBundle(org.osgi.framework.BundleContext bc,
String symbolicName)
bc - bundle contextsymbolicName - bundle symbolic nameversion - bundle versionpublic static List<org.osgi.framework.Bundle> getBundles(org.osgi.framework.BundleContext bc, String symbolicName)
bc - bundle contextsymbolicName - bundle symbolic namepublic static org.osgi.framework.Bundle getBundle(org.osgi.framework.BundleContext bc,
String symbolicName,
String version)
bc - bundle contextsymbolicName - bundle symbolic nameversion - bundle versionCopyright © 2006–2015 OPS4J - Open Participation Software for Java. All rights reserved.