use of com.google.gerrit.httpd.GitOverHttpServlet.GitOverHttpServletModule in project gerrit by GerritCodeReview.
the class WebModule method configure.
@Override
protected void configure() {
bind(RequestScopePropagator.class).to(GuiceRequestScopePropagator.class);
bind(HttpRequestContext.class);
installAuthModule();
if (options.enableMasterFeatures()) {
install(new UrlModule(authConfig));
}
install(new GerritRequestModule());
install(new GitOverHttpServletModule(options.enableMasterFeatures()));
if (gitwebCgiConfig.getGitwebCgi() != null) {
install(new GitwebModule());
}
install(new AsyncReceiveCommitsModule());
bind(SocketAddress.class).annotatedWith(RemotePeer.class).toProvider(HttpRemotePeerProvider.class).in(RequestScoped.class);
bind(ProxyProperties.class).toProvider(ProxyPropertiesProvider.class);
listener().toInstance(registerInParentInjectors());
install(UniversalWebLoginFilter.module());
// Static injection was unfortunately the best solution in this place. However, it is to be
// avoided if possible.
requestStaticInjection(WebSessionManager.Val.class);
}
Aggregations