Package org.hibernate.internal
Class SessionFactoryObserverChain
java.lang.Object
org.hibernate.internal.SessionFactoryObserverChain
- All Implemented Interfaces:
Serializable
,SessionFactoryObserver
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addObserver
(SessionFactoryObserver observer) void
sessionFactoryClosed
(SessionFactory factory) Callback to indicate that the given factory has been closed.void
sessionFactoryClosing
(SessionFactory factory) Callback to indicate that the given factory is about to close.void
sessionFactoryCreated
(SessionFactory factory) Callback to indicate that the given factory has been created and is now ready for use.
-
Constructor Details
-
SessionFactoryObserverChain
public SessionFactoryObserverChain()
-
-
Method Details
-
addObserver
-
sessionFactoryCreated
Description copied from interface:SessionFactoryObserver
Callback to indicate that the given factory has been created and is now ready for use.- Specified by:
sessionFactoryCreated
in interfaceSessionFactoryObserver
- Parameters:
factory
- The factory initialized.
-
sessionFactoryClosing
Description copied from interface:SessionFactoryObserver
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.- Specified by:
sessionFactoryClosing
in interfaceSessionFactoryObserver
- Parameters:
factory
- The factory about to be closed.
-
sessionFactoryClosed
Description copied from interface:SessionFactoryObserver
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.- Specified by:
sessionFactoryClosed
in interfaceSessionFactoryObserver
- Parameters:
factory
- The factory closed.
-