Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
Models Implementation 1.5.0
-
None
-
None
Description
Looking at https://github.com/apache/sling-org-apache-sling-models-impl/blob/master/src/main/java/org/apache/sling/models/impl/injectors/OSGiServiceInjector.java#L102 it seems to get all service references, sort them and then uses the one with the highest ranking.
However BundleContext#getServiceReference() does exactly that, so it can be directly used
Attachments
Issue Links
- is related to
-
SLING-11612 OSGIserviceInjector.getService() blocks under load
- Open