Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3868

Provide a way to get/set a resource resolver associated to the current thread

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              cziegeler Carsten Ziegeler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: