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 2016/02/19 09:00:28 UTC

[jira] [Closed] (SLING-5521) Support Closeable for provider state

     [ 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)