Package org.jdbi.v3.core.config.internal
Class ConfigCustomizerChain
- java.lang.Object
-
- org.jdbi.v3.core.config.internal.ConfigCustomizerChain
-
- All Implemented Interfaces:
ConfigCustomizer
@Beta public final class ConfigCustomizerChain extends java.lang.Object implements ConfigCustomizer
Applies a set ofConfigCustomizers sequentially to aConfigRegistryobject.- Since:
- 3.38.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<ConfigCustomizer>configCustomizers
-
Constructor Summary
Constructors Constructor Description ConfigCustomizerChain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCustomizer(ConfigCustomizer configCustomizer)Adds a customizer to the end of the chain.voidcustomize(ConfigRegistry config)Applies all customizers in the chain to the givenConfigRegistryobject.
-
-
-
Field Detail
-
configCustomizers
private final java.util.Set<ConfigCustomizer> configCustomizers
-
-
Method Detail
-
addCustomizer
public void addCustomizer(ConfigCustomizer configCustomizer)
Adds a customizer to the end of the chain.- Parameters:
configCustomizer- AConfigCustomizerinstance. Must not be null
-
customize
public void customize(ConfigRegistry config)
Applies all customizers in the chain to the givenConfigRegistryobject.- Specified by:
customizein interfaceConfigCustomizer- Parameters:
config- AConfigRegistryobject
-
-