org.semanticdesktop.aperture.subcrawler.impl
Class SubCrawlerRegistryImpl

java.lang.Object
  extended by org.semanticdesktop.aperture.subcrawler.impl.SubCrawlerRegistryImpl
All Implemented Interfaces:
SubCrawlerRegistry
Direct Known Subclasses:
DefaultSubCrawlerRegistry

public class SubCrawlerRegistryImpl
extends Object
implements SubCrawlerRegistry

A trivial default implementation of the SubCrawlerRegistry interface.


Constructor Summary
SubCrawlerRegistryImpl()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubCrawlerRegistryImpl

public SubCrawlerRegistryImpl()
Method Detail

add

public void add(SubCrawlerFactory factory)
Description copied from interface: SubCrawlerRegistry
Adds a SubCrawlerFactory to this registry.

Specified by:
add in interface SubCrawlerRegistry

remove

public void remove(SubCrawlerFactory factory)
Description copied from interface: SubCrawlerRegistry
Removes a SubCrawlerFactory from this registry.

Specified by:
remove in interface SubCrawlerRegistry

get

public Set get(String mimeType)
Description copied from interface: SubCrawlerRegistry
Returns all SubCrawlerFactories that support the specified mime type.

Specified by:
get in interface SubCrawlerRegistry
Returns:
A Set of SubCrawlerFactories that support the specified type.

getByPrefix

public Set getByPrefix(String prefix)
Description copied from interface: SubCrawlerRegistry
Returns all subcrawler factories that support the specified uri prefix.

Specified by:
getByPrefix in interface SubCrawlerRegistry
Parameters:
prefix - the uri prefix
Returns:
a set of SubCrawlerFactories that support the specified prefix

getAll

public Set getAll()
Description copied from interface: SubCrawlerRegistry
Returns all SubCrawlerFactories registered in this SubCrawlerRegistry.

Specified by:
getAll in interface SubCrawlerRegistry
Returns:
A Set of SubCrawlerFactory instances.


Copyright © 2010 Aperture Development Team. All Rights Reserved.