LinkedDataFragments / Server.Java

A Triple Pattern Fragments server for Java
MIT License
27 stars 20 forks source link

Adds a registry of types of data sources #15

Closed hartig closed 8 years ago

hartig commented 8 years ago

Currently, the notion of a type of data sources (e.g., HDT-backed data sources) is implicit and the types that are supported are fixed. This PR introduces more flexibility by making the following two contributions:

  1. it makes the notion of data source types explicit (see IDataSourceType), and
  2. it adds a registry of such types (see DataSourceTypesRegistry) and integrates this registry into the existing code base (see how DataSourceFactory uses the registry now).
hartig commented 8 years ago

I should mention that this PR is the first of a series of PRs that I am planning to make. The overall goal is to change the code base to provide several hooks based on which it will be possible in the future to implement and integrate more data source types (and perhaps even interface types) without having to change the main code base every time.

mielvds commented 8 years ago

Yes, this is definitely a more scalable approach. Merged!