程序包 org.hibernate
接口 SessionFactoryObserver
-
- 所有超级接口:
Serializable
public interface SessionFactoryObserver extends Serializable
Allows reaction to basicSessionFactoryoccurrences.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 默认方法 修饰符和类型 方法 说明 default 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.
-
-
-
方法详细资料
-
sessionFactoryCreated
default void sessionFactoryCreated(SessionFactory factory)
Callback to indicate that the given factory has been created and is now ready for use.- 参数:
factory- The factory initialized.
-
sessionFactoryClosing
default void sessionFactoryClosing(SessionFactory factory)
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. NOTE : defined as default to allow for existing SessionFactoryObserver impls to work in 5.2. Starting in 6.0 the default will be removed and SessionFactoryObserver impls will be required to implement this new method.- 参数:
factory- The factory about to be closed.- 从以下版本开始:
- 5.2
-
sessionFactoryClosed
default void sessionFactoryClosed(SessionFactory factory)
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.- 参数:
factory- The factory closed.
-
-