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, EnumStrategies, Extensions, FreemarkerConfig, HandlerDecorators, Handlers, Handles, Jackson2Config, JdbiCaches, JdbiCollectors, JdbiFreeBuilders, JdbiImmutables, JsonConfig, MapEntryMappers, MapMappers, Mappers, OnDemandExtensions, PojoTypes, PostgresTypes, Qualifiers, ReflectionMappers, ResultProducers, RowMappers, SerializableTransactionRunner.Configuration, SqlArrayTypes, SqlObjects, SqlObjectStatementConfiguration, SqlStatements, StatementExceptions, TimestampedConfig, TupleMappers

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 Type
    Method
    Description
    Returns a copy of this configuration object.
    default void
    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

      default void setRegistry(ConfigRegistry registry)
      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