public class ServiceTrackerFactory
extends java.lang.Object
Constructor and Description |
---|
ServiceTrackerFactory() |
Modifier and Type | Method and Description |
---|---|
static <T> org.osgi.util.tracker.ServiceTracker<T,T> |
create(org.osgi.framework.Bundle bundle,
java.lang.Class<T> clazz) |
static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> |
create(org.osgi.framework.BundleContext bundleContext,
java.lang.Class<S> clazz,
org.osgi.util.tracker.ServiceTrackerCustomizer<S,T> serviceTrackerCustomizer) |
static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> |
create(org.osgi.framework.BundleContext bundleContext,
java.lang.String filterString) |
static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> |
create(org.osgi.framework.BundleContext bundleContext,
java.lang.String filterString,
org.osgi.util.tracker.ServiceTrackerCustomizer<S,T> serviceTrackerCustomizer) |
static <T> org.osgi.util.tracker.ServiceTracker<T,T> |
create(java.lang.Class<T> clazz)
Deprecated.
As of Mueller (7.2.x), with no direct replacement
|
static <T> org.osgi.util.tracker.ServiceTracker<T,T> |
open(org.osgi.framework.Bundle bundle,
java.lang.Class<T> clazz) |
static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> |
open(org.osgi.framework.BundleContext bundleContext,
java.lang.Class<S> clazz,
org.osgi.util.tracker.ServiceTrackerCustomizer<S,T> serviceTrackerCustomizer) |
static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> |
open(org.osgi.framework.BundleContext bundleContext,
java.lang.String filterString) |
static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> |
open(org.osgi.framework.BundleContext bundleContext,
java.lang.String filterString,
org.osgi.util.tracker.ServiceTrackerCustomizer<S,T> serviceTrackerCustomizer) |
static <T> org.osgi.util.tracker.ServiceTracker<T,T> |
open(java.lang.Class<T> clazz)
Deprecated.
As of Mueller (7.2.x), with no direct replacement
|
static <T,W> org.osgi.util.tracker.ServiceTracker<T,org.osgi.framework.ServiceRegistration<W>> |
openWrapperServiceRegistrator(org.osgi.framework.BundleContext bundleContext,
java.lang.Class<T> trackedClass,
java.lang.Class<W> registeredClass,
java.util.function.Function<T,W> wrapperFunction,
java.lang.String... propertyNames) |
static <T> T |
throwException(java.lang.Throwable throwable) |
public static <T> org.osgi.util.tracker.ServiceTracker<T,T> create(org.osgi.framework.Bundle bundle, java.lang.Class<T> clazz)
public static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> create(org.osgi.framework.BundleContext bundleContext, java.lang.Class<S> clazz, org.osgi.util.tracker.ServiceTrackerCustomizer<S,T> serviceTrackerCustomizer)
public static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> create(org.osgi.framework.BundleContext bundleContext, java.lang.String filterString)
public static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> create(org.osgi.framework.BundleContext bundleContext, java.lang.String filterString, org.osgi.util.tracker.ServiceTrackerCustomizer<S,T> serviceTrackerCustomizer)
@Deprecated public static <T> org.osgi.util.tracker.ServiceTracker<T,T> create(java.lang.Class<T> clazz)
public static <T> org.osgi.util.tracker.ServiceTracker<T,T> open(org.osgi.framework.Bundle bundle, java.lang.Class<T> clazz)
public static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> open(org.osgi.framework.BundleContext bundleContext, java.lang.Class<S> clazz, org.osgi.util.tracker.ServiceTrackerCustomizer<S,T> serviceTrackerCustomizer)
public static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> open(org.osgi.framework.BundleContext bundleContext, java.lang.String filterString)
public static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> open(org.osgi.framework.BundleContext bundleContext, java.lang.String filterString, org.osgi.util.tracker.ServiceTrackerCustomizer<S,T> serviceTrackerCustomizer)
@Deprecated public static <T> org.osgi.util.tracker.ServiceTracker<T,T> open(java.lang.Class<T> clazz)
public static <T,W> org.osgi.util.tracker.ServiceTracker<T,org.osgi.framework.ServiceRegistration<W>> openWrapperServiceRegistrator(org.osgi.framework.BundleContext bundleContext, java.lang.Class<T> trackedClass, java.lang.Class<W> registeredClass, java.util.function.Function<T,W> wrapperFunction, java.lang.String... propertyNames)
public static <T> T throwException(java.lang.Throwable throwable)