@Override protected void configure() { install(new LimeWireUiDownloadsTableModule()); bind(AllDownloadPanelFactory.class) .toProvider( FactoryProvider.newFactory(AllDownloadPanelFactory.class, AllDownloadPanel.class)); bind(CategoryDownloadPanelFactory.class) .toProvider( FactoryProvider.newFactory( CategoryDownloadPanelFactory.class, CategoryDownloadPanel.class)); }
@Override protected void configure() { configureHandlers(); bindScope(RequestScoped.class, requestScope); bind(RequestScope.class).toInstance(requestScope); bind(new Key<List<RequestMatcher>>() {}).toInstance(matchers.build()); bind(Servlet.class).to(RequestHandlerServlet.class).in(Singleton.class); bind(ProxyServletConfig.Factory.class) .toProvider( FactoryProvider.newFactory(ProxyServletConfig.Factory.class, ProxyServletConfig.class)); bind(ProxyRequestHandler.Factory.class) .toProvider( FactoryProvider.newFactory( ProxyRequestHandler.Factory.class, ProxyRequestHandler.class)); bind(ProxyConfiguration.class).in(Singleton.class); }