Package org.dataloader
Class DataLoaderRegistry.Builder
- java.lang.Object
-
- org.dataloader.DataLoaderRegistry.Builder
-
- Enclosing class:
- DataLoaderRegistry
public static class DataLoaderRegistry.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataLoaderRegistry
build()
DataLoaderRegistry.Builder
instrumentation(DataLoaderInstrumentation instrumentation)
DataLoaderRegistry.Builder
register(java.lang.String key, DataLoader<?,?> dataLoader)
This will register a new dataloaderDataLoaderRegistry.Builder
registerAll(DataLoaderRegistry otherRegistry)
This will combine the data loaders in this builder with the ones from a previousDataLoaderRegistry
-
-
-
Method Detail
-
register
public DataLoaderRegistry.Builder register(java.lang.String key, DataLoader<?,?> dataLoader)
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
public DataLoaderRegistry.Builder registerAll(DataLoaderRegistry otherRegistry)
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
public DataLoaderRegistry.Builder instrumentation(DataLoaderInstrumentation instrumentation)
-
build
public DataLoaderRegistry build()
- Returns:
- the newly built
DataLoaderRegistry
-
-