Package org.jdbi.v3.core.config
Interface JdbiConfig<This extends JdbiConfig<This>>
- Type Parameters:
This
- A "This" type. Should always be the configuration class.
- All Known Implementing Classes:
Arguments
,ColumnMappers
,Enums
,Extensions
,Handles
,JdbiCaches
,JdbiCollectors
,JdbiFreeBuilders
,JdbiImmutables
,MapEntryMappers
,MapMappers
,Mappers
,Qualifiers
,ReflectionMappers
,ResultProducers
,RowMappers
,SerializableTransactionRunner.Configuration
,SqlArrayTypes
,SqlStatements
,StatementExceptions
public interface JdbiConfig<This extends JdbiConfig<This>>
Interface for classes that hold configuration. Implementations of this interface must have a public
constructor that optionally takes the
ConfigRegistry
.
Implementors should ensure that implementations are thread-safe for access and caching purposes, but not
necessarily for reconfiguration.-
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of this configuration object.default void
setRegistry
(ConfigRegistry registry) The registry will inject itself into the configuration object.
-
Method Details
-
createCopy
This createCopy()Returns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Returns:
- a copy of this configuration object.
-
setRegistry
The registry will inject itself into the configuration object. This can be useful if you need to look up dependencies. You will get a new registry after being copied.- Parameters:
registry
- the registry that owns this configuration object
-