Class ServiceTrackerFactory

java.lang.Object
com.liferay.osgi.util.ServiceTrackerFactory

public class ServiceTrackerFactory extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> org.osgi.util.tracker.ServiceTracker<T,T>
    create(Class<T> clazz)
    Deprecated.
    As of Mueller (7.2.x), with no direct replacement
    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)
     
    static <S, T> org.osgi.util.tracker.ServiceTracker<S,T>
    create(org.osgi.framework.BundleContext bundleContext, String filterString)
     
    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>
    create(org.osgi.framework.Bundle bundle, Class<T> clazz)
     
    static <T> org.osgi.util.tracker.ServiceTracker<T,T>
    open(Class<T> clazz)
    Deprecated.
    As of Mueller (7.2.x), with no direct replacement
    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)
     
    static <S, T> org.osgi.util.tracker.ServiceTracker<S,T>
    open(org.osgi.framework.BundleContext bundleContext, String filterString)
     
    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>
    open(org.osgi.framework.Bundle bundle, Class<T> clazz)
     
    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> T
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 public static <T> org.osgi.util.tracker.ServiceTracker<T,T> create(Class<T> clazz)
      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 public static <T> org.osgi.util.tracker.ServiceTracker<T,T> open(Class<T> clazz)
      Deprecated.
      As of Mueller (7.2.x), with no direct replacement
    • openWrapperServiceRegistrator

      public 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)
    • throwException

      public static <T> T throwException(Throwable throwable)