@ThreadSafe public final class ServiceProxy<T> extends java.lang.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,
java.lang.Class<T> serviceClazz) |
static <T> ServiceProxy<T> |
createServiceProxy(org.osgi.framework.BundleContext bundleContext,
java.lang.Class<T> serviceClazz,
long timeout,
java.util.concurrent.TimeUnit timeUnit) |
T |
getService() |
public static <T> ServiceProxy<T> createServiceProxy(org.osgi.framework.BundleContext bundleContext, java.lang.Class<T> serviceClazz)
public static <T> ServiceProxy<T> createServiceProxy(org.osgi.framework.BundleContext bundleContext, java.lang.Class<T> serviceClazz, long timeout, java.util.concurrent.TimeUnit timeUnit)
public T getService()
public void close()
Copyright © 2016 Red Hat. All Rights Reserved.