Top Description Methods
org.hibernate

public Interface SessionFactoryObserver

extends Serializable
Known Direct Implementers
org.hibernate.bytecode.internal.SessionFactoryObserverForBytecodeEnhancer, org.hibernate.internal.SessionFactoryObserverChain, org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.ServiceRegistryCloser, org.hibernate.type.spi.TypeConfiguration
Imports
java.io.Serializable

Allows reaction to basic SessionFactory occurrences.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public default void
sessionFactoryClosed(SessionFactory
The factory closed.
factory
)

Deprecated as a consequence of SessionFactory being deprecated.
Callback to indicate that the given factory has been closed.
public default void
sessionFactoryClosing(SessionFactory
The factory about to be closed.
factory
)

Deprecated as a consequence of SessionFactory being deprecated.
Callback to indicate that the given factory is about to close.
public default void
sessionFactoryCreated(SessionFactory
The factory initialized.
factory
)

Deprecated as a consequence of SessionFactory being deprecated.
Callback to indicate that the given factory has been created and is now ready for use.

Method Detail

sessionFactoryClosedback to summary
public default void sessionFactoryClosed(SessionFactory factory)

Deprecated

as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

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.

Parameters
factory:SessionFactory

The factory closed.

sessionFactoryClosingback to summary
public default void sessionFactoryClosing(SessionFactory factory)

Deprecated

as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

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.

Parameters
factory:SessionFactory

The factory about to be closed.

Since
5.2
sessionFactoryCreatedback to summary
public default void sessionFactoryCreated(SessionFactory factory)

Deprecated

as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

Callback to indicate that the given factory has been created and is now ready for use.

Parameters
factory:SessionFactory

The factory initialized.