[
https://issues.apache.org/jira/browse/SLING-11983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17748104#comment-17748104
]
Joerg Hoh commented on SLING-11983:
-----------------------------------
The current API doc only mention "objects which share the same lifecycle as the
resource resolver." as a reference. Initially I meant that these entries do not
out-live the ResourceResolver, but of course it can also be understood as in
"objects live exactly as long as the resource resolver", thus that they are not
purged by any operation before the closing of the ResourceResolver.
Then we should make the API description clearer and maybe also mention the
limited use of this propertyMap for caching purposes (mostly because of the
staleness aspects mentioned by Carsten), unless you are in full control of the
ResourceResolver itself.
> Clear propertyMap when resourceResolver.refresh() is called
> -----------------------------------------------------------
>
> Key: SLING-11983
> URL: https://issues.apache.org/jira/browse/SLING-11983
> Project: Sling
> Issue Type: Task
> Components: ResourceResolver
> Affects Versions: Resource Resolver 1.10.0
> Reporter: Joerg Hoh
> Priority: Major
>
> The ResourceResolver should clear the the propertyMap when refresh is called.
> Also the Javadoc needs to be updated to reflect that.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)