Package org.hibernate.bytecode.internal
Class SessionFactoryObserverForBytecodeEnhancer
- java.lang.Object
-
- org.hibernate.bytecode.internal.SessionFactoryObserverForBytecodeEnhancer
-
- All Implemented Interfaces:
Serializable
,SessionFactoryObserver
public final class SessionFactoryObserverForBytecodeEnhancer extends Object implements SessionFactoryObserver
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SessionFactoryObserverForBytecodeEnhancer(BytecodeProvider bytecodeProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 Detail
-
SessionFactoryObserverForBytecodeEnhancer
public SessionFactoryObserverForBytecodeEnhancer(BytecodeProvider bytecodeProvider)
-
-
Method Detail
-
sessionFactoryCreated
public void sessionFactoryCreated(SessionFactory factory)
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
public void sessionFactoryClosing(SessionFactory factory)
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. 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.- Specified by:
sessionFactoryClosing
in interfaceSessionFactoryObserver
- Parameters:
factory
- The factory about to be closed.
-
sessionFactoryClosed
public void sessionFactoryClosed(SessionFactory factory)
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.
-
-