SessionFactoryObserver (Hibernate JavaDocs)
Date: 2012-04-05

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hibernate
Interface SessionFactoryObserver

All Superinterfaces:
  Serializable

All Known Implementing Classes:
  SessionFactoryObserverChain

    public interface SessionFactoryObserver

extends Serializable

Allows reaction to basic `SessionFactory` occurrences.

Method Summary
`void` | `sessionFactoryClosed(SessionFactory factory)` Callback to indicate that the given factory has been closed.
`void` | `sessionFactoryCreated(SessionFactory factory)` Callback to indicate that the given factory has been created and is now ready for use.

Method Detail

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.