[ https://issues.apache.org/jira/browse/SLING-11796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-11796. -------------------------------------- Resolution: Fixed > 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 > Assignee: Carsten Ziegeler > Priority: Major > Fix For: Servlets Resolver 2.9.16 > > > 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 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 reregister the servlets only in the case the search paths > array has changed. -- This message was sent by Atlassian Jira (v8.20.10#820010)