public final class FrameworkUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.osgi.framework.Bundle[] |
getBundles(org.osgi.framework.BundleContext context,
String symbolicName,
org.osgi.framework.VersionRange versionRange) |
static int |
getFrameworkStartLevel(org.osgi.framework.BundleContext context) |
static void |
refreshBundles(org.osgi.framework.BundleContext context,
Collection<org.osgi.framework.Bundle> bundles) |
static void |
refreshBundles(org.osgi.framework.BundleContext context,
Collection<org.osgi.framework.Bundle> bundles,
long timeout,
TimeUnit units) |
static void |
setFrameworkStartLevel(org.osgi.framework.BundleContext context,
int level) |
static void |
setFrameworkStartLevel(org.osgi.framework.BundleContext context,
int level,
long timeout,
TimeUnit units) |
static <T> T |
waitForService(org.osgi.framework.BundleContext context,
Class<T> clazz) |
static <T> T |
waitForService(org.osgi.framework.BundleContext context,
Class<T> clazz,
long timeout,
TimeUnit unit) |
static <T> org.osgi.framework.ServiceReference<T> |
waitForServiceReference(org.osgi.framework.BundleContext context,
Class<T> clazz) |
static <T> org.osgi.framework.ServiceReference<T> |
waitForServiceReference(org.osgi.framework.BundleContext context,
Class<T> clazz,
long timeout,
TimeUnit unit) |
public static org.osgi.framework.Bundle[] getBundles(org.osgi.framework.BundleContext context,
String symbolicName,
org.osgi.framework.VersionRange versionRange)
public static int getFrameworkStartLevel(org.osgi.framework.BundleContext context)
public static void setFrameworkStartLevel(org.osgi.framework.BundleContext context,
int level)
throws InterruptedException,
TimeoutException
InterruptedExceptionTimeoutExceptionpublic static void setFrameworkStartLevel(org.osgi.framework.BundleContext context,
int level,
long timeout,
TimeUnit units)
throws InterruptedException,
TimeoutException
InterruptedExceptionTimeoutExceptionpublic static void refreshBundles(org.osgi.framework.BundleContext context,
Collection<org.osgi.framework.Bundle> bundles)
throws InterruptedException,
TimeoutException
InterruptedExceptionTimeoutExceptionpublic static void refreshBundles(org.osgi.framework.BundleContext context,
Collection<org.osgi.framework.Bundle> bundles,
long timeout,
TimeUnit units)
throws InterruptedException,
TimeoutException
InterruptedExceptionTimeoutExceptionpublic static <T> T waitForService(org.osgi.framework.BundleContext context,
Class<T> clazz)
public static <T> T waitForService(org.osgi.framework.BundleContext context,
Class<T> clazz,
long timeout,
TimeUnit unit)
public static <T> org.osgi.framework.ServiceReference<T> waitForServiceReference(org.osgi.framework.BundleContext context,
Class<T> clazz)
Copyright © 2016 JBoss by Red Hat. All rights reserved.