New event listeners and new event types

This is a first step towards moving ChangeHooks into a plugin.  The
listeners[1] are now invoked from all places where corresponding
hooks are invoked.  Invocation of hooks is not removed in this change.
This will happen when we make sure that they are invoked from a new
event listener.

[1] All listeners under:
gerrit-extension-api/src/main/java/com/google/gerrit/extensions/events/

Change-Id: I6e5356edb2c326d2d7a0133b84509ad6071140d0
This commit is contained in:
Saša Živkov
2015-11-11 14:50:46 -08:00
committed by David Pursehouse
parent 32c126204b
commit 59cdd227a9
29 changed files with 1251 additions and 10 deletions

View File

@@ -27,6 +27,7 @@ public interface CommentAddedListener {
AccountInfo getAuthor();
String getComment();
Map<String, ApprovalInfo> getApprovals();
Map<String, ApprovalInfo> getOldApprovals();
}
void onCommentAdded(Event event);