Interface DataProvider

  • All Known Implementing Classes:
    DataProviderImpl

    public interface DataProvider
    DataProvider is responsible for providing data based on the registered data sources.
    Since:
    3.0.0
    Author:
    Oliver Libutzki <[email protected]>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <SelectorType,​DataType>
      java.lang.Iterable<DataType>
      getData​(java.lang.Class<DataType> dataType, SelectorType selector)
      Provides an Iterable of the given data type.
    • Method Detail

      • getData

        <SelectorType,​DataType> java.lang.Iterable<DataType> getData​(java.lang.Class<DataType> dataType,
                                                                           SelectorType selector)
        Provides an Iterable of the given data type. Based on the requested type and the given selector the method tries to find exactly one data source which is able to handle the request. If it succeeds, DataSource.getData(Object) is called an returned.
        Parameters:
        dataType - Type of the requested data
        selector - the selector which is used to determine the data to be provided
        Returns:
        An Iterable of the requested data type
        Since:
        3.0.0