| Currently the SessionFactory allows to listen for events about its creation and it being closed. The latter however only notifies the listener after it has already been closed. For my use case I need a callback that is called before any actual resources are closed so I can cleanup objects that I want to bind to the lifecycle of the SessionFactory (and these require access to the database). |