Package yearreview.app.data
Class DataManager
java.lang.Object
yearreview.app.data.DataManager
Manages all
DataSource
by creating them from a given configuration and loading them.- Author:
- ColdStone37
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDataManager
(XmlNode dataConfig) Creates a DataManager from a given configuration. -
Method Summary
Modifier and TypeMethodDescriptiongetSourceByTag
(String tag) Gets a DataSource by its tag.void
loadData()
Loads the data of allDataSources
on multiple Threads.
-
Field Details
-
sources
List of DataSources loaded from the configuration. -
logger
-
-
Constructor Details
-
DataManager
Creates a DataManager from a given configuration.- Parameters:
dataConfig
- configuration
-
-
Method Details
-
getSourceByTag
Gets a DataSource by its tag.- Parameters:
tag
- tag to search for- Returns:
- the DataSource or null if no DataSource with that tag exists
-
loadData
public void loadData()Loads the data of allDataSources
on multiple Threads.
-