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 TypeMethodDescriptionvoidaddObserver(SessionFactoryObserver observer) voidsessionFactoryClosed(SessionFactory factory) Callback to indicate that the given factory has been closed.voidsessionFactoryClosing(SessionFactory factory) Callback to indicate that the given factory is about to close.voidsessionFactoryCreated(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:SessionFactoryObserverCallback to indicate that the given factory has been created and is now ready for use.- Specified by:
sessionFactoryCreatedin interfaceSessionFactoryObserver- Parameters:
factory- The factory initialized.
-
sessionFactoryClosing
Description copied from interface:SessionFactoryObserverCallback 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:
sessionFactoryClosingin interfaceSessionFactoryObserver- Parameters:
factory- The factory about to be closed.
-
sessionFactoryClosed
Description copied from interface:SessionFactoryObserverCallback 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:
sessionFactoryClosedin interfaceSessionFactoryObserver- Parameters:
factory- The factory closed.
-