public final class ServiceLocator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.Long |
DEFAULT_TIMEOUT |
Modifier and Type | Method and Description |
---|---|
static <T> T |
awaitService(org.osgi.framework.BundleContext bundleContext,
java.lang.Class<T> type) |
static <T> T |
awaitService(org.osgi.framework.BundleContext bundleContext,
java.lang.Class<T> type,
long timeout,
java.util.concurrent.TimeUnit unit) |
static <T> T |
awaitService(org.osgi.framework.BundleContext bundleContext,
java.lang.Class<T> type,
java.lang.String filter) |
static <T> T |
awaitService(org.osgi.framework.BundleContext bundleContext,
java.lang.Class<T> type,
java.lang.String filterspec,
long timeout,
java.util.concurrent.TimeUnit unit) |
public static <T> T awaitService(org.osgi.framework.BundleContext bundleContext, java.lang.Class<T> type)
public static <T> T awaitService(org.osgi.framework.BundleContext bundleContext, java.lang.Class<T> type, long timeout, java.util.concurrent.TimeUnit unit)
public static <T> T awaitService(org.osgi.framework.BundleContext bundleContext, java.lang.Class<T> type, java.lang.String filter)
public static <T> T awaitService(org.osgi.framework.BundleContext bundleContext, java.lang.Class<T> type, java.lang.String filterspec, long timeout, java.util.concurrent.TimeUnit unit)
Copyright © 2011-2014 Red Hat. All Rights Reserved.