Package org.jdbi.v3.core.config.internal
Class ConfigCustomizerChain
java.lang.Object
org.jdbi.v3.core.config.internal.ConfigCustomizerChain
- All Implemented Interfaces:
ConfigCustomizer
Applies a set of
ConfigCustomizers sequentially to a ConfigRegistry object.- Since:
- 3.38.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomizer(ConfigCustomizer configCustomizer) Adds a customizer to the end of the chain.voidcustomize(ConfigRegistry config) Applies all customizers in the chain to the givenConfigRegistryobject.
-
Field Details
-
configCustomizers
-
-
Constructor Details
-
ConfigCustomizerChain
public ConfigCustomizerChain()
-
-
Method Details
-
addCustomizer
Adds a customizer to the end of the chain.- Parameters:
configCustomizer- AConfigCustomizerinstance. Must not be null
-
customize
Applies all customizers in the chain to the givenConfigRegistryobject.- Specified by:
customizein interfaceConfigCustomizer- Parameters:
config- AConfigRegistryobject
-