Thierry Ygé created SLING-10357:
-----------------------------------

             Summary: As a developer I would like to store extra attribute in 
the resource resolver
                 Key: SLING-10357
                 URL: https://issues.apache.org/jira/browse/SLING-10357
             Project: Sling
          Issue Type: Improvement
          Components: ResourceResolver
    Affects Versions: Resource Resolver 1.7.4
            Reporter: Thierry Ygé


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] [~bdelacretaz]

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to