You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2024/07/10 11:34:00 UTC

[jira] [Resolved] (SLING-12374) Improve injector handling in ModelAdapterFactory

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

Carsten Ziegeler resolved SLING-12374.
--------------------------------------
    Resolution: Fixed

Changed the code to use field injection where the collection is automatically sorted by DS. Removed also all usage of Sling commons OSGi by either using the Converter or the fact that property maps from DS are comparable

> Improve injector handling in ModelAdapterFactory
> ------------------------------------------------
>
>                 Key: SLING-12374
>                 URL: https://issues.apache.org/jira/browse/SLING-12374
>             Project: Sling
>          Issue Type: Improvement
>          Components: Sling Models
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>            Priority: Major
>             Fix For: Models Implementation 1.7.2
>
>
> Injectors are pluggable services which are currently handled with a lot of code, including usage of RankedServices from Slings commons OSGi.
> I think most of this code can be removed by simply leveraging a field reference which is already sorted by DS.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)