@ Override protected void configure ( ) { super . configure ( ) ; bind ( Crawler . class ) . to ( DefaultCrawler . class ) ; bind ( ExecutorService . class ) . toProvider ( ExecutorServiceProvider . class ) ; bind ( HTMLPageResponseFetcher . class ) . to ( HTTPClientResponseFetcher . class ) ; bind ( HttpClient . class ) . toProvider ( HttpClientProvider . class ) ; bind ( PageURLParser . class ) . to ( AhrefPageURLParser . class ) ; // For parsing assets bind ( AssetsParser . class ) . to ( DefaultAssetsParser . class ) ; bind ( AssetsVerifier . class ) . to ( DefaultAssetsVerifier . class ) ; bind ( AssetFetcher . class ) . to ( HTTPClientAssetFetcher . class ) ; }
Bind the classes .