[ 
https://issues.apache.org/jira/browse/SOLR-17094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Primault updated SOLR-17094:
------------------------------------
    Priority: Minor  (was: Trivial)

> Close objects contained inside an ObjectCache
> ---------------------------------------------
>
>                 Key: SOLR-17094
>                 URL: https://issues.apache.org/jira/browse/SOLR-17094
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Vincent Primault
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> As a plugin author, I often need a place where to store an object which 
> should be a singleton, e.g., at CoreContainer-level. To do so, in spite of a 
> better place, I use the ObjectCache as a holder of my singleton. This makes 
> it easy to store and retrieve my singleton, but it is quite complex to clean 
> it up when CoreContainer is shutting down.
> My proposal is hence to have ObjectCache to automatically close any Closeable 
> object that is stored within it, in order to serve this use case for plugin 
> authors.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to