Radu Cotescu created SLING-11796:
------------------------------------
Summary: The ResourceResolverFactory dependency should be dynamic
Key: SLING-11796
URL: https://issues.apache.org/jira/browse/SLING-11796
Project: Sling
Issue Type: Improvement
Components: Servlets
Affects Versions: Servlets Resolver 2.9.4
Reporter: Radu Cotescu
Fix For: Servlets Resolver 2.9.12
The {{BundledScriptTracker}} requires the {{ResourceResolverFactory}} to
determine servlets for resource types should be added to the servlets
hierarchy. However, in a system with a large number of servlets a restart of
the {{ResourceResolverFactory}} forces the servlets' reregistration. This is an
expensive operation which should only happen if really required. Since the
tracker only needs the search path information from the
{{ResourceResolverFactory}}, this reference should be made dynamic and the
tracker should only reregister the servlets if a search paths array change has
been detected.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)