org.semanticdesktop.aperture.detector.impl
Class DataSourceDetectorRegistryImpl

java.lang.Object
  extended by org.semanticdesktop.aperture.detector.impl.DataSourceDetectorRegistryImpl
All Implemented Interfaces:
DataSourceDetectorRegistry
Direct Known Subclasses:
DefaultDataSourceDetectorRegistry

public class DataSourceDetectorRegistryImpl
extends Object
implements DataSourceDetectorRegistry

A trivial default implementation of the DataSourceDetectorRegistry interface.

Since:
1.1.1
Author:
sauermann, 2.7.2008

Constructor Summary
DataSourceDetectorRegistryImpl()
          Default constructor
 
Method Summary
 void add(DataSourceDetector detector)
          Adds a DataSourceDetector to this registry.
 Set<DataSourceDetector> get(URI type)
          Returns all DataSourceDetectors that support the specified DataSource type.
 Set<DataSourceDetector> getAll()
          Returns all DataSourceDetectors registered in this DataSourceDetectorRegistry.
 void remove(DataSourceDetector detector)
          Removes a DataSourceDetector from this registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceDetectorRegistryImpl

public DataSourceDetectorRegistryImpl()
Default constructor

Method Detail

add

public void add(DataSourceDetector detector)
Description copied from interface: DataSourceDetectorRegistry
Adds a DataSourceDetector to this registry.

Specified by:
add in interface DataSourceDetectorRegistry

remove

public void remove(DataSourceDetector detector)
Description copied from interface: DataSourceDetectorRegistry
Removes a DataSourceDetector from this registry.

Specified by:
remove in interface DataSourceDetectorRegistry

get

public Set<DataSourceDetector> get(URI type)
Description copied from interface: DataSourceDetectorRegistry
Returns all DataSourceDetectors that support the specified DataSource type.

Specified by:
get in interface DataSourceDetectorRegistry
Returns:
A Set of DataSourceDetectors whose supported types equal the specified type. May be empty but never null

getAll

public Set<DataSourceDetector> getAll()
Description copied from interface: DataSourceDetectorRegistry
Returns all DataSourceDetectors registered in this DataSourceDetectorRegistry.

Specified by:
getAll in interface DataSourceDetectorRegistry
Returns:
A Set of DataSourceDetector instances. May be empty but never null


Copyright © 2010 Aperture Development Team. All Rights Reserved.