Class ConfigReader


  • public class ConfigReader
    extends Object
    Reads the configuration of a Linked Data Fragments server.
    Author:
    Ruben Verborgh, Olaf Hartig
    • Constructor Detail

      • ConfigReader

        public ConfigReader​(Reader configReader)
        Creates a new configuration reader.
        Parameters:
        configReader - the configuration
    • Method Detail

      • getDataSourceTypes

        public Map<String,​IDataSourceType> getDataSourceTypes()
        Gets the data source types.
        Returns:
        a mapping of names of data source types to these types
      • getDataSources

        public Map<String,​com.fasterxml.jackson.databind.JsonNode> getDataSources()
        Gets the data sources.
        Returns:
        the data sources
      • getPrefixes

        public Map<String,​String> getPrefixes()
        Gets the prefixes.
        Returns:
        the prefixes
      • getBaseURL

        public String getBaseURL()
        Gets the base URL
        Returns:
        the base URL
      • initDataSouceType

        protected IDataSourceType initDataSouceType​(String className)
        Loads a certain IDataSourceType class at runtime
        Parameters:
        className - IDataSourceType class
        Returns:
        the created IDataSourceType object