You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (JIRA)" <ji...@apache.org> on 2015/12/04 21:56:11 UTC

[jira] [Commented] (SLING-5032) Even if a field is annotated with Source the ModelAdapterFactory will query all injectors

    [ https://issues.apache.org/jira/browse/SLING-5032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15042221#comment-15042221 ] 

Stefan Seifert commented on SLING-5032:
---------------------------------------

Completed: At revision: 1718031  

two small improvements on this fix:
- make access to injectors concurrent map atomic to ensure thread safety of bind/unbind methods
- remove code redundancy in injectElement method when iterating over the injectors to process

> Even if a field is annotated with Source the ModelAdapterFactory will query all injectors
> -----------------------------------------------------------------------------------------
>
>                 Key: SLING-5032
>                 URL: https://issues.apache.org/jira/browse/SLING-5032
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: Sling Models Impl 1.2.2
>            Reporter: Radu Cotescu
>            Assignee: Radu Cotescu
>             Fix For: Sling Models Impl 1.2.4
>
>
> Even if a field is annotated with Source the ModelAdapterFactory will query all injectors instead of directly picking the indicated injector, which is wasteful.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)