类 SessionFactoryObserverChain
- java.lang.Object
-
- org.hibernate.internal.SessionFactoryObserverChain
-
- 所有已实现的接口:
Serializable,SessionFactoryObserver
public class SessionFactoryObserverChain extends Object implements SessionFactoryObserver
- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 SessionFactoryObserverChain()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddObserver(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.
-
-
-
方法详细资料
-
addObserver
public void addObserver(SessionFactoryObserver observer)
-
sessionFactoryCreated
public void sessionFactoryCreated(SessionFactory factory)
从接口复制的说明:SessionFactoryObserverCallback to indicate that the given factory has been created and is now ready for use.- 指定者:
sessionFactoryCreated在接口中SessionFactoryObserver- 参数:
factory- The factory initialized.
-
sessionFactoryClosing
public void sessionFactoryClosing(SessionFactory factory)
从接口复制的说明: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. 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.- 指定者:
sessionFactoryClosing在接口中SessionFactoryObserver- 参数:
factory- The factory about to be closed.
-
sessionFactoryClosed
public void sessionFactoryClosed(SessionFactory factory)
从接口复制的说明: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.- 指定者:
sessionFactoryClosed在接口中SessionFactoryObserver- 参数:
factory- The factory closed.
-
-