Package org.hibernate
Interface SessionFactoryObserver
- All Superinterfaces:
Serializable
Allows reaction to basic
SessionFactory occurrences.-
Method Summary
Modifier and TypeMethodDescriptionvoidsessionFactoryClosed(SessionFactory factory) Callback to indicate that the given factory has been closed.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.
-
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.
-