public static final class ModuleConfiguration.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ModuleConfiguration |
build() |
ModuleConfiguration.Builder |
module(String module)
Specifies the constructor of this module.
|
ModuleConfiguration.Builder |
set(Map<String,Object> options) |
ModuleConfiguration.Builder |
set(String key,
Object value)
Sets the configuration key to the given value
|
ModuleConfiguration.Builder |
with(String module)
Adds the submodule to this module with the default parameters
|
ModuleConfiguration.Builder |
with(String name,
Consumer<ModuleConfiguration.Builder> f)
Adds the submodule to this module with the given configuration
|
ModuleConfiguration.Builder |
with(String module,
ModuleConfiguration configuration)
Adds the submodule to this module with the given configuration
|
ModuleConfiguration.Builder |
with(String key,
String module)
Adds an existing top-level module to this submodule as a dependency.
|
public ModuleConfiguration.Builder set(String key, Object value)
public ModuleConfiguration.Builder module(String module)
module - the module constructor, e.g. `"crux.rocksdb/->kv-store"`public ModuleConfiguration.Builder set(Map<String,Object> options)
public ModuleConfiguration.Builder with(String module)
public ModuleConfiguration.Builder with(String module, ModuleConfiguration configuration)
public ModuleConfiguration.Builder with(String name, Consumer<ModuleConfiguration.Builder> f)
public ModuleConfiguration.Builder with(String key, String module)
key - the key under which the dependency will appear to this modulemodule - the key of the module to refer topublic ModuleConfiguration build()