You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2014/01/29 13:00:20 UTC

[jira] [Created] (SLING-3347) Improve handling of features service reference

Felix Meschberger created SLING-3347:
----------------------------------------

             Summary: Improve handling of features service reference
                 Key: SLING-3347
                 URL: https://issues.apache.org/jira/browse/SLING-3347
             Project: Sling
          Issue Type: Improvement
          Components: ResourceResolver
            Reporter: Felix Meschberger
             Fix For: Resource Resolver 1.1.0


Currently each access to the ResourceResolverFactoryActivator.getFeatures() method causes the service to be looked up in the Service Component Runtime. Even though this service is cached there, it involves some work to do this lookup.

It would be better to reduce this lookup to the first use and then cache the reference to the Features object until a change happens, such as the Features service being unregistered.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)