Package org.dataloader
Class DataLoaderRegistry.Builder
java.lang.Object
org.dataloader.DataLoaderRegistry.Builder
- Enclosing class:
DataLoaderRegistry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
register
(String key, DataLoader<?, ?> dataLoader) This will register a new dataloaderregisterAll
(DataLoaderRegistry otherRegistry) This will combine together the data loaders in this builder with the ones from a previousDataLoaderRegistry
-
Field Details
-
dataLoaders
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
register
This will register a new dataloader- Parameters:
key
- the key to put the data loader underdataLoader
- the data loader to register- Returns:
- this builder for a fluent pattern
-
registerAll
This will combine together the data loaders in this builder with the ones from a previousDataLoaderRegistry
- Parameters:
otherRegistry
- the previousDataLoaderRegistry
- Returns:
- this builder for a fluent pattern
-
build
- Returns:
- the newly built
DataLoaderRegistry
-