org.semanticdesktop.aperture.detector
Interface DataSourceDetectorRegistry

All Known Implementing Classes:
DataSourceDetectorRegistryImpl, DefaultDataSourceDetectorRegistry

public interface DataSourceDetectorRegistry

An DataSourceDetectorRegistry serves as a central registry for registering and obtaining DataSourceDetectors.

Since:
1.1.1
Author:
sauermann, 2.7.2008

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.
 

Method Detail

add

void add(DataSourceDetector detector)
Adds a DataSourceDetector to this registry.


remove

void remove(DataSourceDetector detector)
Removes a DataSourceDetector from this registry.


get

Set<DataSourceDetector> get(URI type)
Returns all DataSourceDetectors that support the specified DataSource type.

Returns:
A Set of DataSourceDetectors whose supported types equal the specified type. May be empty but never null

getAll

Set<DataSourceDetector> getAll()
Returns all DataSourceDetectors registered in this DataSourceDetectorRegistry.

Returns:
A Set of DataSourceDetector instances. May be empty but never null


Copyright © 2010 Aperture Development Team. All Rights Reserved.