[
https://issues.apache.org/jira/browse/SLING-3868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler closed SLING-3868.
-----------------------------------
> 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: JCR Resource 2.3.8, API 2.8.0, Resource Resolver 1.1.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)