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/15 09:37:18 UTC
[jira] [Created] (SLING-5521) Support Closeable for provider state
Carsten Ziegeler created SLING-5521:
---------------------------------------
Summary: 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: Resource Resolver 1.5.0
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)