org.semanticdesktop.aperture.datasource
Interface DataSourceFactory

All Known Implementing Classes:
BibsonomyDataSourceFactory, DeliciousDataSourceFactory, FileSystemDataSourceFactory, FlickrDataSourceFactory, IcalDataSourceFactory, ImapDataSourceFactory, MboxDataSourceFactory, OutlookDataSourceFactory, SambaDataSourceFactory, ThunderbirdAddressbookDataSourceFactory, WebDataSourceFactory

public interface DataSourceFactory

DataSourceFactories create instances of DataSources.

DataSources are globally typed using URIs. This makes it possible to talk about specific types of DataSources outside the scope of a Java application and makes sharing of DataSources over technical boundaries such as platforms and programming languages possible. Each DataSourceFactory should be able to tell which DataSource type it supports, and thus which configurable properties the returned DataSource will have, by returning the DataSource type identifier as a URI.


Method Summary
 boolean getDescription(Model model)
          Puts a description of this data source into the given model.
 URI getSupportedType()
          Returns the URI of the supported DataSource type.
 DataSource newInstance()
          Returns a new instance of the supported DataSource type.
 

Method Detail

getSupportedType

URI getSupportedType()
Returns the URI of the supported DataSource type.


newInstance

DataSource newInstance()
Returns a new instance of the supported DataSource type.


getDescription

boolean getDescription(Model model)
Puts a description of this data source into the given model. This description should be expressed in fresnel vocabulary. It should be a single fresnel:Lens, with a fresnel:classLensDomain set to the URI of the type supported by this factory (returned by the getSupportedType method). See the fresnel user manual for details.

Returns:
true if the description has been put into the model
false if not e.g. if there is no such description.


Copyright © 2010 Aperture Development Team. All Rights Reserved.