use of com.google.gerrit.server.schema.SchemaModule in project gerrit by GerritCodeReview.
the class DeleteZombieDrafts method getSysInjector.
private Injector getSysInjector() {
List<Module> modules = new ArrayList<>();
modules.add(new AbstractModule() {
@Override
protected void configure() {
bind(Path.class).annotatedWith(SitePath.class).toInstance(getSitePath());
bind(ConsoleUI.class).toInstance(ConsoleUI.getInstance(false));
bind(String.class).annotatedWith(SecureStoreClassName.class).toProvider(Providers.of(getConfiguredSecureStoreClass()));
bind(MetricMaker.class).to(DisabledMetricMaker.class);
install(new FactoryModuleBuilder().build(DeleteZombieCommentsRefs.Factory.class));
}
});
modules.add(new GerritServerConfigModule());
modules.add(new SchemaModule());
return Guice.createInjector(modules);
}
Aggregations