Issue 12420

Create easy builders for Crawlers with common/default configurations

12420
Reporter: lfrancke
Assignee: lfrancke
Type: NewFeature
Summary: Create easy builders for Crawlers with common/default configurations
Priority: Minor
Resolution: Fixed
Status: Closed
Created: 2012-11-30 10:09:48.166
Updated: 2013-12-17 15:46:36.814
Resolved: 2013-01-15 13:10:12.15
        
Description: Something along the lines of either of these:
{code}
Crawlers.newDigirCrawler(...);
Crawlers.newTapirCrawler(...);

Listener myListener = new DigirDBLoadingListener(...);
Crawler c = DiGIRCrawler.newInstance(url, resourceCode..., myListener);  // whatever the minimum is needed for default configuration
c.crawl();

Listener myListener = newTapirDBLoadingListener(...);
Crawler c = TAPIRCrawler.newInstance(url, resourceCode..., myListener);  // whatever the minimum is needed for default configuration
c.crawl();
{code}

People can usually reuse existing components and if they want to do custom things with the response all they need to do is implement a Listener.]]>