Example usage for org.hibernate SessionFactoryObserver sessionFactoryClosed

List of usage examples for org.hibernate SessionFactoryObserver sessionFactoryClosed

Introduction

In this page you can find the example usage for org.hibernate SessionFactoryObserver sessionFactoryClosed.

Prototype

default void sessionFactoryClosed(SessionFactory factory) 

Source Link

Document

Callback to indicate that the given factory has been closed.

Usage

From source file:org.openeos.hibernate.internal.configurators.ObserverConfigurator.java

License:Apache License

@Override
public void sessionFactoryClosed(SessionFactory factory) {
    LOG.debug("Session factory has been closed, calling all SessionFactoryObserver services");
    for (SessionFactoryObserver observer : tracker.getTracked().values()) {
        observer.sessionFactoryClosed(factory);
    }/*w ww.  java  2  s .co  m*/

}