Package org.fastnate.data
Class InjectDataProviderFactory
java.lang.Object
org.fastnate.data.AbstractDataProviderFactory
org.fastnate.data.InjectDataProviderFactory
- All Implemented Interfaces:
DataProviderFactory
Find and initializes
DataProviders on the classpath. Dependencies between DataProviders are injected.- Author:
- Tobias Liefke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateDataProviders(EntityImporter parentImporter) Discovers, builds and registers allDataProviders that are available for the current environment.Methods inherited from class org.fastnate.data.AbstractDataProviderFactory
buildReflections, findImporterDependency, findProviderClasses
-
Constructor Details
-
InjectDataProviderFactory
public InjectDataProviderFactory()
-
-
Method Details
-
createDataProviders
Description copied from interface:DataProviderFactoryDiscovers, builds and registers allDataProviders that are available for the current environment. Ensures that the order of the providers is set in accordance with their dependencies.- Parameters:
parentImporter- the current importer that needs the providers, new providers are added withEntityImporter.addDataProvider(DataProvider)orEntityImporter.addDataProvider(DataProvider, int)
-