public abstract class ServiceUtils extends Object
| Constructor and Description |
|---|
ServiceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
safeGetService(org.osgi.framework.BundleContext ctx,
org.osgi.framework.ServiceReference<T> ref)
Get the service
|
static <T> T |
safeGetServiceObjects(org.osgi.framework.BundleContext ctx,
org.osgi.framework.ServiceReference<T> ref)
Get the service using
ServiceObjects |
static <T> void |
safeUngetService(org.osgi.framework.BundleContext ctx,
org.osgi.framework.ServiceReference<T> ref)
Unget the service
|
static <T> void |
safeUngetServiceObjects(org.osgi.framework.BundleContext ctx,
org.osgi.framework.ServiceReference<T> ref,
T service)
Unget the service using
ServiceObjects |
public static <T> T safeGetService(org.osgi.framework.BundleContext ctx,
org.osgi.framework.ServiceReference<T> ref)
nullpublic static <T> void safeUngetService(org.osgi.framework.BundleContext ctx,
org.osgi.framework.ServiceReference<T> ref)
public static <T> T safeGetServiceObjects(org.osgi.framework.BundleContext ctx,
org.osgi.framework.ServiceReference<T> ref)
ServiceObjectsnullpublic static <T> void safeUngetServiceObjects(org.osgi.framework.BundleContext ctx,
org.osgi.framework.ServiceReference<T> ref,
T service)
ServiceObjectsCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.