@ThreadSafe public final class ServiceProxy<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static <T> ServiceProxy<T> |
createServiceProxy(org.osgi.framework.BundleContext bundleContext,
Class<T> serviceClazz) |
static <T> ServiceProxy<T> |
createServiceProxy(org.osgi.framework.BundleContext bundleContext,
Class<T> serviceClazz,
long timeout,
TimeUnit timeUnit) |
T |
getService() |
public static <T> ServiceProxy<T> createServiceProxy(org.osgi.framework.BundleContext bundleContext, Class<T> serviceClazz)
public static <T> ServiceProxy<T> createServiceProxy(org.osgi.framework.BundleContext bundleContext, Class<T> serviceClazz, long timeout, TimeUnit timeUnit)
public T getService()
public void close()
Copyright © 2011–2014 Red Hat. All rights reserved.