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 "Davide Giannella (JIRA)" <ji...@apache.org> on 2017/07/06 15:35:05 UTC

[jira] [Closed] (OAK-6313) Support properties filtering in the Whiteboard track method

     [ https://issues.apache.org/jira/browse/OAK-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davide Giannella closed OAK-6313.
---------------------------------

Bulk close for 1.7.3

> Support properties 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, 1.7.3
>
>         Attachments: OAK-6313.patch
>
>
> 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.4.14#64029)