Separated event infrastructure from DB.

This commit is contained in:
akwizgran
2014-10-03 09:44:54 +01:00
parent 6a4ea49786
commit 8b8df435a5
29 changed files with 368 additions and 244 deletions

View File

@@ -0,0 +1,13 @@
package org.briarproject.api.event;
public interface EventBus {
/** Adds a listener to be notified when events occur. */
void addListener(EventListener l);
/** Removes a listener. */
void removeListener(EventListener l);
/** Notifies all listeners of an event. */
void broadcast(Event e);
}