Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-17094

Close objects contained inside an ObjectCache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.5
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vprimault Vincent Primault
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m