use of com.haulmont.cuba.core.listener.AfterCompleteTransactionListener in project cuba by cuba-platform.
the class PersistenceImplSupport method setApplicationContext.
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
Map<String, BeforeCommitTransactionListener> beforeCommitMap = applicationContext.getBeansOfType(BeforeCommitTransactionListener.class);
beforeCommitTxListeners = new ArrayList<>(beforeCommitMap.values());
beforeCommitTxListeners.sort(new OrderComparator());
Map<String, AfterCompleteTransactionListener> afterCompleteMap = applicationContext.getBeansOfType(AfterCompleteTransactionListener.class);
afterCompleteTxListeners = new ArrayList<>(afterCompleteMap.values());
afterCompleteTxListeners.sort(new OrderComparator());
}
Aggregations