in src/main/java/com/ericsson/gerrit/plugins/highavailability/index/IndexModule.java [30:56]
protected void configure() {
bind(ScheduledExecutorService.class)
.annotatedWith(IndexExecutor.class)
.toProvider(IndexExecutorProvider.class);
bind(ScheduledExecutorService.class)
.annotatedWith(ForwardedIndexExecutor.class)
.toProvider(ForwardedIndexExecutorProvider.class);
bind(IndexEventLocks.class).in(Scopes.SINGLETON);
bind(ScheduledExecutorService.class)
.annotatedWith(BatchIndexExecutor.class)
.toProvider(BatchIndexExecutorProvider.class);
bind(ScheduledExecutorService.class)
.annotatedWith(ForwardedBatchIndexExecutor.class)
.toProvider(ForwardedBatchIndexExecutorProvider.class);
listener().to(IndexExecutorProvider.class);
DynamicSet.bind(binder(), ChangeIndexedListener.class)
.to(IndexEventHandler.class)
.in(Scopes.SINGLETON);
DynamicSet.bind(binder(), AccountIndexedListener.class).to(IndexEventHandler.class);
DynamicSet.bind(binder(), GroupIndexedListener.class).to(IndexEventHandler.class);
DynamicSet.bind(binder(), ProjectIndexedListener.class).to(IndexEventHandler.class);
install(
new FactoryModuleBuilder()
.implement(ChangeChecker.class, ChangeCheckerImpl.class)
.build(ChangeCheckerImpl.Factory.class));
}