Package org.hibernate
Interface SessionFactoryObserver
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
SessionFactoryObserverChain,SessionFactoryObserverForBytecodeEnhancer,TypeConfiguration
Allows reaction to basic
SessionFactory lifecycle events.
A SessionFactoryObserver may be registered using the configuration property
"hibernate.session_factory_observer".
- Author:
- Steve Ebersole
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidsessionFactoryClosed(SessionFactory factory) Callback to indicate that the given factory has been closed.default voidsessionFactoryClosing(SessionFactory factory) Callback to indicate that the given factory is about to close.default voidsessionFactoryCreated(SessionFactory factory) Callback to indicate that the given factory has been created and is now ready for use.
-
Method Details
-
sessionFactoryCreated
Callback to indicate that the given factory has been created and is now ready for use.- Parameters:
factory- The factory initialized.
-
sessionFactoryClosing
Callback to indicate that the given factory is about to close. The passed factory reference should be usable since it is only about to close.- Parameters:
factory- The factory about to be closed.- Since:
- 5.2
-
sessionFactoryClosed
Callback to indicate that the given factory has been closed. Care should be taken in how (if at all) the passed factory reference is used since it is closed.- Parameters:
factory- The factory closed.
-