Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6313

Support properties filtering in the Whiteboard track method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.3, 1.8.0
    • core-spi
    • None

    Description

      Since the Whiteboard#register() method supports passing properties, we should be able to track only services which are configured with specific values. In order to do this, let's add a new method to the Whiteboard interface:

      <T> Tracker<T> track(Class<T> type, Map<String, String> filterProperties);
      

      If a null value is passed for a given key map, only services without this property set will be returned. If a service is registered with a non-String property, the toString() method will be invoked first.

      Attachments

        1. OAK-6313.patch
          20 kB
          Tomek Rękawek

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tomek.rekawek Tomek Rękawek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: