Package | Description |
---|---|
org.fastnate.data | |
org.fastnate.data.files | |
org.fastnate.data.xml |
Modifier and Type | Class and Description |
---|---|
class |
AbstractDataProvider
Implementations of this class will automatically instantiated by the
EntityImporter . |
class |
EntityRegistration
Registers entities by their unique properties to offer them to other data providers.
|
Modifier and Type | Field and Description |
---|---|
private List<DataProvider> |
EntityImporter.dataProviders |
Modifier and Type | Method and Description |
---|---|
protected <C extends DataProvider> |
DefaultDataProviderFactory.addProvider(EntityImporter importer,
Class<C> providerClass)
Tries to instantiate the provider from the given class.
|
protected <C extends DataProvider> |
DefaultDataProviderFactory.addProvider(EntityImporter importer,
Constructor<C> constructor)
Tries to create a provider using the given constructor and adds it to list of providers in the
EntityImporter . |
<P extends DataProvider> |
EntityImporter.findDataProvider(Class<P> providerClass)
Resolves the first provider that is an instance of the given class.
|
Modifier and Type | Method and Description |
---|---|
protected List<Class<? extends DataProvider>> |
AbstractDataProviderFactory.findProviderClasses(org.reflections.Reflections reflections)
Finds all provider classes from the class path, that implement
DataProvider . |
List<DataProvider> |
EntityImporter.getDataProviders() |
Modifier and Type | Method and Description |
---|---|
void |
DefaultDataProviderFactory.MaxOrder.add(DataProvider provider)
Adds the order of the given provider to this order agglomeration.
|
void |
EntityImporter.addDataProvider(DataProvider provider)
Adds a provider to the list of available providers.
|
void |
EntityImporter.addDataProvider(DataProvider provider,
int maximumOrderOfDepenendencies)
Adds a provider to the list of available providers.
|
private void |
DefaultDataProviderFactory.invokePostConstruct(Class<?> instanceClass,
Set<String> calledMethods,
DataProvider provider) |
Modifier and Type | Method and Description |
---|---|
private boolean |
DefaultDataProviderFactory.findResourceFields(EntityImporter importer,
Class<?> instanceClass,
List<Consumer<DataProvider>> resources,
DefaultDataProviderFactory.MaxOrder maxOrder) |
private boolean |
DefaultDataProviderFactory.findResourceSetters(EntityImporter importer,
Class<?> instanceClass,
List<Consumer<DataProvider>> resources,
Set<String> injectedMethods,
DefaultDataProviderFactory.MaxOrder maxOrder) |
Modifier and Type | Class and Description |
---|---|
class |
GenericDataProvider
Imports all entities from all files in
$dataFolder/entities that match a
specific pattern. |
Modifier and Type | Class and Description |
---|---|
class |
GenericXmlDataProvider
Imports all entities from all XML files in
$dataFolder/entities . |
Copyright © 2022 fastnate.org. All rights reserved.