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

Nicolas Peltier commented on SLING-8754:
----------------------------------------

https://github.com/apache/sling-org-apache-sling-models-impl/pull/15/files
reduces all request based service resolution, not the resource ones

> stop using models impl bundle context for OSGiServiceInjector
> -------------------------------------------------------------
>
>                 Key: SLING-8754
>                 URL: https://issues.apache.org/jira/browse/SLING-8754
>             Project: Sling
>          Issue Type: Improvement
>          Components: Sling Models
>    Affects Versions: Sling Models Impl 1.4.10
>            Reporter: Nicolas Peltier
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> right now OSGiServiceInjector uses its own bundle context for fetching the 
> service reference, which generates ClassNotFoundException under the hood 
> during assignable checks at each bind, which is bad for performances.
> The annotation should either:
> - use the context of the bundle it extends,
> - use scripting core's ServiceCache,
> - use the above through SlingScriptHelper
> cc [~radu] [~justin]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to