Search in sources :

Example 1 with NoopEventBridge

use of org.apache.cayenne.event.NoopEventBridge in project cayenne by apache.

the class DefaultDataRowStoreFactory method setUpEventBridge.

private void setUpEventBridge(DataRowStore store) {
    try {
        EventBridge eventBridge = eventBridgeProvider.get();
        if (eventBridge instanceof NoopEventBridge) {
            return;
        }
        store.setEventBridge(eventBridge);
        store.startListeners();
    } catch (Exception ex) {
        throw new CayenneRuntimeException("Error initializing DataRowStore.", ex);
    }
}
Also used : NoopEventBridge(org.apache.cayenne.event.NoopEventBridge) CayenneRuntimeException(org.apache.cayenne.CayenneRuntimeException) NoopEventBridge(org.apache.cayenne.event.NoopEventBridge) EventBridge(org.apache.cayenne.event.EventBridge) CayenneRuntimeException(org.apache.cayenne.CayenneRuntimeException) DIRuntimeException(org.apache.cayenne.di.DIRuntimeException)

Aggregations

CayenneRuntimeException (org.apache.cayenne.CayenneRuntimeException)1 DIRuntimeException (org.apache.cayenne.di.DIRuntimeException)1 EventBridge (org.apache.cayenne.event.EventBridge)1 NoopEventBridge (org.apache.cayenne.event.NoopEventBridge)1