You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Tomek Rękawek (JIRA)" <ji...@apache.org> on 2017/06/07 10:56:18 UTC

[jira] [Created] (OAK-6313) Support proeprties filtering in the Whiteboard track method

Tomek Rękawek created OAK-6313:
----------------------------------

             Summary: Support proeprties filtering in the Whiteboard track method
                 Key: OAK-6313
                 URL: https://issues.apache.org/jira/browse/OAK-6313
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: core-spi
            Reporter: Tomek Rękawek
             Fix For: 1.8


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:

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

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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)