You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2022/05/24 07:22:00 UTC

[jira] [Resolved] (SLING-10357) As a developer I would like to store extra attribute in the resource resolver

     [ https://issues.apache.org/jira/browse/SLING-10357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved SLING-10357.
--------------------------------------
    Resolution: Duplicate

> 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é
>            Priority: Major
>
> 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.20.7#820007)