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)

Reply via email to