[
https://issues.apache.org/jira/browse/SLING-5806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler resolved SLING-5806.
-------------------------------------
Resolution: Fixed
The services of the same type are now ordered by service ranking (highest wins)
Refactored the code and moved the tracker customizers into separate classes for
easier testing
I've also added a test which shows that the old code was broken, and succeeds
with the new code
> No service returned if several services for same type
> -----------------------------------------------------
>
> Key: SLING-5806
> URL: https://issues.apache.org/jira/browse/SLING-5806
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Affects Versions: Rewriter 1.1.2
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Priority: Critical
> Fix For: Rewriter 1.1.4
>
>
> If there is more than one plugin service (generator, transformer, serializer,
> processor) for the same type, and just one of them is unregistered, the
> factory cache will return null - although there are still other services for
> the same type.
> In addition, there is no rule on which service to pick if there are multiple
> for the same type
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)