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

As a developer I would like to store extra attribute in the resource resolver

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Resource Resolver 1.7.4
    • Fix Version/s: None
    • Component/s: ResourceResolver
    • Labels:
      None

      Description

      Sometime we need to cache information which is resource resolver live time dependent.

      So far we need then to keep a hashmap somewhere with the "resource resolver" object as key , and then we need to cleanup that cache from time to time when "resource resolver" object is no longer alive.

      Having a mean to add extra metadata along to the resource resolver object would help simplifying such use case of caching.

       

      Currently the ResourceResolver API offer a getAttribute() which is then read only as there is no setAttribute currently, maybe we need something like get/setMetadata(...) for storing anything along with the resolver.

      cc Radu Cotescu Bertrand Delacretaz

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              petitbear68 Thierry Ygé
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: