Package org.dataloader
Class DataLoaderRegistry.Builder
java.lang.Object
org.dataloader.DataLoaderRegistry.Builder
- Enclosing class:
- DataLoaderRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
instrumentation
(DataLoaderInstrumentation instrumentation) register
(String key, DataLoader<?, ?> dataLoader) This will register a new dataloaderregisterAll
(DataLoaderRegistry otherRegistry) This will combine the data loaders in this builder with the ones from a previousDataLoaderRegistry
-
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 the data loaders in this builder with the ones from a previousDataLoaderRegistry
- Parameters:
otherRegistry
- the previousDataLoaderRegistry
- Returns:
- this builder for a fluent pattern
-
instrumentation
-
build
- Returns:
- the newly built
DataLoaderRegistry
-