Search in sources :

Example 6 with GraphEvent

use of org.apache.cayenne.graph.GraphEvent in project cayenne by apache.

the class BaseContext method fireDataChannelChanged.

/**
 * @since 1.2
 */
protected void fireDataChannelChanged(Object postedBy, GraphDiff changes) {
    EventManager manager = getEventManager();
    if (manager != null) {
        GraphEvent e = new GraphEvent(this, postedBy, changes);
        manager.postEvent(e, DataChannel.GRAPH_CHANGED_SUBJECT);
    }
}
Also used : GraphEvent(org.apache.cayenne.graph.GraphEvent) EventManager(org.apache.cayenne.event.EventManager)

Aggregations

GraphEvent (org.apache.cayenne.graph.GraphEvent)6 EventManager (org.apache.cayenne.event.EventManager)4 DataChannelSyncCallbackAction (org.apache.cayenne.DataChannelSyncCallbackAction)1 EventSubject (org.apache.cayenne.event.EventSubject)1 CompoundDiff (org.apache.cayenne.graph.CompoundDiff)1 GraphDiff (org.apache.cayenne.graph.GraphDiff)1 Test (org.junit.Test)1