Fix EventListener hook

We are only allowed to call DynamicSet.bind *after* DynamicSet.setOf.

Change-Id: Icff501c2fd5ac9696467d378d81ecd67f39dc0f3
This commit is contained in:
Yuxuan 'fishy' Wang 2016-02-10 15:50:32 -08:00 committed by Hugo Arès
parent 437e46ea7d
commit e3c8bb9b86

View File

@ -277,8 +277,8 @@ public class GerritGlobalModule extends FactoryModule {
DynamicSet.bind(binder(), GitReferenceUpdatedListener.class).to(ReindexAfterUpdate.class);
DynamicSet.bind(binder(), GitReferenceUpdatedListener.class)
.to(ProjectConfigEntry.UpdateChecker.class);
DynamicSet.bind(binder(), EventListener.class).to(EventsMetrics.class);
DynamicSet.setOf(binder(), EventListener.class);
DynamicSet.bind(binder(), EventListener.class).to(EventsMetrics.class);
DynamicSet.setOf(binder(), CommitValidationListener.class);
DynamicSet.setOf(binder(), RefOperationValidationListener.class);
DynamicSet.setOf(binder(), MergeValidationListener.class);