[ 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)