org.semanticdesktop.aperture.crawler
Interface CrawlerFactory

All Known Implementing Classes:
BibsonomyCrawlerFactory, DeliciousCrawlerFactory, FileSystemCrawlerFactory, FlickrCrawlerFactory, IcalCrawlerFactory, ImapCrawlerFactory, MboxCrawlerFactory, OutlookCrawlerFactory, SambaCrawlerFactory, ThunderbirdAddressbookCrawlerFactory, WebCrawlerFactory

public interface CrawlerFactory

CrawlerFactories created Crawlers capable of crawling specific types of DataSources. Rather than referring to specific DataSource implementations, a CrawlerFactory refers to the DataSource type URIs it supports.

See Also:
DataSource.getType()

Method Summary
 Crawler getCrawler(DataSource dataSource)
          Return a Crawler that can crawl the specified DataSource.
 Set getSupportedTypes()
          Returns a set of URIs indicating the DataSource types that are supported by the Crawler implementation provided by this CrawlerFactory.
 

Method Detail

getSupportedTypes

Set getSupportedTypes()
Returns a set of URIs indicating the DataSource types that are supported by the Crawler implementation provided by this CrawlerFactory.

Returns:
A Set of DataSource type URIs.

getCrawler

Crawler getCrawler(DataSource dataSource)
Return a Crawler that can crawl the specified DataSource. The getType method of this DataSource should return a URI that is contained in the supported types set of this CrawlerFactory.

Parameters:
dataSource - The DataSource for which a Crawler needs to be generated.
Returns:
A Crawler whose getDataSource method returns the specified DataSource.


Copyright © 2010 Aperture Development Team. All Rights Reserved.