Carsten Ziegeler created SLING-3868:
---------------------------------------
Summary: Provide a way to get/set a resource resolver associated
to the current thread
Key: SLING-3868
URL: https://issues.apache.org/jira/browse/SLING-3868
Project: Sling
Issue Type: Improvement
Components: API
Reporter: Carsten Ziegeler
Assignee: Carsten Ziegeler
Fix For: API 2.7.2
In some cases it's not possible to pass the current resource resolver done the
call stack (as the methods do not provide a parameter to pass it). However, an
implementation might want to use the request resource resolver.
We could generalize this and add a new method to the ResourceResolverFactory:
- ResourceResolver getCurrentResourceResolver().
This resolver is kept in a thread local stack.
Whenever RRF.getResourceResolver is called, the new resolver is put onto that
stack.
When a RRF is closed, it's removed from the stack, even if it is not the top
element.
--
This message was sent by Atlassian JIRA
(v6.2#6252)