Package com.liferay.osgi.util
Class ServiceTrackerFactory
java.lang.Object
com.liferay.osgi.util.ServiceTrackerFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> org.osgi.util.tracker.ServiceTracker<T,T> Deprecated.As of Mueller (7.2.x), with no direct replacementstatic <S,T> org.osgi.util.tracker.ServiceTracker<S, T> create(org.osgi.framework.BundleContext bundleContext, Class<S> clazz, org.osgi.util.tracker.ServiceTrackerCustomizer<S, T> serviceTrackerCustomizer) static <S,T> org.osgi.util.tracker.ServiceTracker<S, T> static <S,T> org.osgi.util.tracker.ServiceTracker<S, T> create(org.osgi.framework.BundleContext bundleContext, String filterString, org.osgi.util.tracker.ServiceTrackerCustomizer<S, T> serviceTrackerCustomizer) static <T> org.osgi.util.tracker.ServiceTracker<T,T> static <T> org.osgi.util.tracker.ServiceTracker<T,T> Deprecated.As of Mueller (7.2.x), with no direct replacementstatic <S,T> org.osgi.util.tracker.ServiceTracker<S, T> open(org.osgi.framework.BundleContext bundleContext, Class<S> clazz, org.osgi.util.tracker.ServiceTrackerCustomizer<S, T> serviceTrackerCustomizer) static <S,T> org.osgi.util.tracker.ServiceTracker<S, T> static <S,T> org.osgi.util.tracker.ServiceTracker<S, T> open(org.osgi.framework.BundleContext bundleContext, String filterString, org.osgi.util.tracker.ServiceTrackerCustomizer<S, T> serviceTrackerCustomizer) static <T> org.osgi.util.tracker.ServiceTracker<T,T> static <T,W> org.osgi.util.tracker.ServiceTracker<T, org.osgi.framework.ServiceRegistration<W>> openWrapperServiceRegistrator(org.osgi.framework.BundleContext bundleContext, Class<T> trackedClass, Class<W> registeredClass, Function<T, W> wrapperFunction, String... propertyNames) static <T> TthrowException(Throwable throwable)
-
Constructor Details
-
ServiceTrackerFactory
public ServiceTrackerFactory()
-
-
Method Details
-
create
public static <T> org.osgi.util.tracker.ServiceTracker<T,T> create(org.osgi.framework.Bundle bundle, Class<T> clazz) -
create
public static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> create(org.osgi.framework.BundleContext bundleContext, Class<S> clazz, org.osgi.util.tracker.ServiceTrackerCustomizer<S, T> serviceTrackerCustomizer) -
create
public static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> create(org.osgi.framework.BundleContext bundleContext, String filterString) -
create
public static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> create(org.osgi.framework.BundleContext bundleContext, String filterString, org.osgi.util.tracker.ServiceTrackerCustomizer<S, T> serviceTrackerCustomizer) -
create
Deprecated.As of Mueller (7.2.x), with no direct replacement -
open
public static <T> org.osgi.util.tracker.ServiceTracker<T,T> open(org.osgi.framework.Bundle bundle, Class<T> clazz) -
open
public static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> open(org.osgi.framework.BundleContext bundleContext, Class<S> clazz, org.osgi.util.tracker.ServiceTrackerCustomizer<S, T> serviceTrackerCustomizer) -
open
public static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> open(org.osgi.framework.BundleContext bundleContext, String filterString) -
open
public static <S,T> org.osgi.util.tracker.ServiceTracker<S,T> open(org.osgi.framework.BundleContext bundleContext, String filterString, org.osgi.util.tracker.ServiceTrackerCustomizer<S, T> serviceTrackerCustomizer) -
open
Deprecated.As of Mueller (7.2.x), with no direct replacement -
openWrapperServiceRegistrator
-
throwException
-