[
https://issues.apache.org/jira/browse/SLING-5521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler closed SLING-5521.
-----------------------------------
> Support Closeable for provider state
> ------------------------------------
>
> Key: SLING-5521
> URL: https://issues.apache.org/jira/browse/SLING-5521
> Project: Sling
> Issue Type: Improvement
> Components: ResourceResolver
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Fix For: JCR Resource 2.7.2, Resource Resolver 1.4.2
>
>
> To prevent from potential memory leaks we should support Closeable for the
> provider state: if a resource resolver is still open while a resource
> provider is unregistered, the provider becomes unavailable and can't be
> called for logout anymore.
> However, the resource resolver still holds the provider state and can call
> methods on it. Therefore we could support ading close() if the state object
> implements Closeable and proberly cleanup (given that the state object itself
> can clean up)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)