Introduce feature flag for auto-closing AutoCloseable
in Jupiter's ExtensionContext.Store
#4434
Milestone
AutoCloseable
in Jupiter's ExtensionContext.Store
#4434
Currently, only instances of
CloseableResource
that are stored in anExtensionContext.Store
are closed automatically when theExtensionContext
is closed. However, items stored in the session-/request-level stores only need to implementAutoCloseable
. To address this confusing difference in behavior, we should introduce a configuration parameter that allows to treatAutoCloseable
likeCloseableResource
in Jupiter's stores. For backward compatibility, it should be "off" by default in 5.13 but "on" in 6.0.Deliverables
CloseableResource
CloseableResource
extendAutoCloseable
so existing implementations would keep workingThe text was updated successfully, but these errors were encountered: