Package org.hibernate

Interface SessionFactoryObserver

All Superinterfaces:
Serializable

public interface SessionFactoryObserver extends Serializable
Allows reaction to basic SessionFactory occurrences.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Callback to indicate that the given factory has been closed.
    void
    Callback to indicate that the given factory has been created and is now ready for use.
  • Method Details

    • sessionFactoryCreated

      void sessionFactoryCreated(SessionFactory factory)
      Callback to indicate that the given factory has been created and is now ready for use.
      Parameters:
      factory - The factory initialized.
    • sessionFactoryClosed

      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.
      Parameters:
      factory - The factory closed.