protected void configure()

in src/main/java/com/googlesource/gerrit/plugins/webhooks/PluginModule.java [41:64]


  protected void configure() {
    bind(ScheduledExecutorService.class)
        .annotatedWith(WebHooksExecutor.class)
        .toProvider(ExecutorProvider.class)
        .in(Scopes.SINGLETON);

    factory(PostTask.Factory.class);
    factory(RemoteConfig.Factory.class);
    factory(HttpSession.Factory.class);

    DynamicSet.bind(binder(), EventListener.class).to(EventHandler.class);

    bind(CloseableHttpClient.class)
        .annotatedWith(Names.named(DEFAULT))
        .toProvider(DefaultHttpClientProvider.class)
        .in(Scopes.SINGLETON);
    bind(CloseableHttpClient.class)
        .annotatedWith(Names.named(SSL_VERIFY))
        .toProvider(SslVerifyingHttpClientProvider.class)
        .in(Scopes.SINGLETON);

    install(processors);
    install(new WebhooksRestModule());
  }