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)