public class Bundles
extends java.lang.Object
| Constructor and Description |
|---|
Bundles() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<java.lang.String> |
filterInstalled(org.osgi.framework.BundleContext bundleContext,
java.util.Collection<java.lang.String> packages,
VersionResolver resolver)
Filter out any packages which are already installed as a version which matches the imported version range
|
static org.osgi.framework.Bundle |
findBundle(org.osgi.framework.BundleContext bundleContext,
java.lang.String name,
java.lang.String version) |
static java.util.Set<org.osgi.framework.Bundle> |
findBundles(org.osgi.framework.BundleContext context,
java.lang.String name)
Find installed bundles by symbolic name
|
static org.osgi.framework.Bundle |
findOneBundle(org.osgi.framework.BundleContext context,
java.lang.String name)
Find a single installed bundle by symbolic name.
|
static boolean |
isFragment(org.osgi.framework.Bundle bundle)
Returns true if the given bundle is a fragment (and so cannot be loaded)
|
static boolean |
isInstalled(org.osgi.framework.BundleContext bundleContext,
java.lang.String name,
java.lang.String version) |
public static boolean isInstalled(org.osgi.framework.BundleContext bundleContext,
java.lang.String name,
java.lang.String version)
public static java.util.Set<java.lang.String> filterInstalled(org.osgi.framework.BundleContext bundleContext,
java.util.Collection<java.lang.String> packages,
VersionResolver resolver)
public static org.osgi.framework.Bundle findBundle(org.osgi.framework.BundleContext bundleContext,
java.lang.String name,
java.lang.String version)
public static java.util.Set<org.osgi.framework.Bundle> findBundles(org.osgi.framework.BundleContext context,
java.lang.String name)
context - the bundle context to searchname - the bundle symbolic namepublic static org.osgi.framework.Bundle findOneBundle(org.osgi.framework.BundleContext context,
java.lang.String name)
context - the bundle context to searchname - the bundle symbolic namejava.lang.IllegalStateException - if there are no matching bundles or more than one matching bundlepublic static boolean isFragment(org.osgi.framework.Bundle bundle)
Copyright © 2016 Red Hat. All Rights Reserved.