Class AbstractServiceTracker<T>

    • Constructor Detail

      • AbstractServiceTracker

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

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

      • start

        public void start​(Whiteboard whiteboard)
      • stop

        public void stop()
      • getServices

        protected 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