Search in sources :

Example 1 with RefreshEventListener

use of org.hibernate.event.spi.RefreshEventListener in project hibernate-orm by hibernate.

the class SessionImpl method fireRefresh.

private void fireRefresh(Map refreshedAlready, RefreshEvent event) {
    try {
        checkTransactionSynchStatus();
        for (RefreshEventListener listener : listeners(EventType.REFRESH)) {
            listener.onRefresh(event, refreshedAlready);
        }
        delayedAfterCompletion();
    } catch (RuntimeException e) {
        throw exceptionConverter.convert(e);
    } finally {
        delayedAfterCompletion();
    }
}
Also used : RefreshEventListener(org.hibernate.event.spi.RefreshEventListener)

Aggregations

RefreshEventListener (org.hibernate.event.spi.RefreshEventListener)1