public abstract class HooksConfigurationBuilder
extends java.lang.Object
If you want to add hooks, use Components.hooks()
, configure accordingly, and pass it
to LDConfig.Builder.hooks(HooksConfigurationBuilder)
.
List hooks = createSomeHooks();
LDConfig config = new LDConfig.Builder()
.hooks(
Components.hooks()
.setHooks(hooks)
)
.build();
Note that this class is abstract; the actual implementation is created by calling Components.hooks()
.
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Hook> |
hooks
The current set of hooks the builder has.
|
Constructor and Description |
---|
HooksConfigurationBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract HookConfiguration |
build() |
HooksConfigurationBuilder |
setHooks(java.util.List<Hook> hooks)
Adds the provided list of hooks to the configuration.
|
protected java.util.List<Hook> hooks
public HooksConfigurationBuilder setHooks(java.util.List<Hook> hooks)
Hook
for more details.hooks
- to be added to the configurationpublic abstract HookConfiguration build()