org.semanticdesktop.aperture.subcrawler
Interface SubCrawlerRegistry

All Known Implementing Classes:
DefaultSubCrawlerRegistry, SubCrawlerRegistryImpl

public interface SubCrawlerRegistry

A SubCrawlerRegistry serves as a central registry for registering and obtaining SubCrawlerFactories.


Method Summary
 void add(SubCrawlerFactory factory)
          Adds a SubCrawlerFactory to this registry.
 Set get(String mimeType)
          Returns all SubCrawlerFactories that support the specified mime type.
 Set getAll()
          Returns all SubCrawlerFactories registered in this SubCrawlerRegistry.
 Set getByPrefix(String prefix)
          Returns all subcrawler factories that support the specified uri prefix.
 void remove(SubCrawlerFactory factory)
          Removes a SubCrawlerFactory from this registry.
 

Method Detail

add

void add(SubCrawlerFactory factory)
Adds a SubCrawlerFactory to this registry.


remove

void remove(SubCrawlerFactory factory)
Removes a SubCrawlerFactory from this registry.


get

Set get(String mimeType)
Returns all SubCrawlerFactories that support the specified mime type.

Returns:
A Set of SubCrawlerFactories that support the specified type.

getByPrefix

Set getByPrefix(String prefix)
Returns all subcrawler factories that support the specified uri prefix.

Parameters:
prefix - the uri prefix
Returns:
a set of SubCrawlerFactories that support the specified prefix

getAll

Set getAll()
Returns all SubCrawlerFactories registered in this SubCrawlerRegistry.

Returns:
A Set of SubCrawlerFactory instances.


Copyright © 2010 Aperture Development Team. All Rights Reserved.