Class AbstractServiceTracker<T>

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractServiceTracker​(@NotNull java.lang.Class<T> type)  
      protected AbstractServiceTracker​(@NotNull java.lang.Class<T> type, @NotNull java.util.Map<java.lang.String,​java.lang.String> filterProperties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.List<T> getServices()
      Returns all services of type T that are currently available.
      void start​(Whiteboard whiteboard)  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractServiceTracker

        protected AbstractServiceTracker​(@NotNull
                                         @NotNull java.lang.Class<T> type)
      • AbstractServiceTracker

        protected AbstractServiceTracker​(@NotNull
                                         @NotNull java.lang.Class<T> type,
                                         @NotNull
                                         @NotNull java.util.Map<java.lang.String,​java.lang.String> filterProperties)
    • Method Detail

      • start

        public void start​(Whiteboard whiteboard)
      • stop

        public void stop()
      • getServices

        protected java.util.List<T> getServices()
        Returns all services of type T that are currently available. This method is intentionally not synchronized to prevent lock contention when accessed frequently in highly concurrent code.
        Returns:
        currently available services