Interface DbClientServiceProvider

All Known Implementing Classes:
DbClientMetricsProvider, DbClientTracingProvider

public interface DbClientServiceProvider
Java service loader service to configure client services.
  • Method Summary

    Modifier and Type
    Method
    Description
    The configuration key expected in config.
    create(Config config)
    Create a new interceptor instance with the configuration provided.
  • Method Details

    • configKey

      String configKey()
      The configuration key expected in config. If the key exists, the builder looks into global, named, and typed sub keys to configure appropriate instances. Method create(Config) is called for each configuration as follows:
      • global: the configuration key is used to get a new instance
      • {code named}: for each configuration node with a list of nodes, a new instance is requested
      • {code typed}: for each configuration node with a list of types, a new instance is requested
      Returns:
      name of the configuration key (such as "tracing")
    • create

      Create a new interceptor instance with the configuration provided.
      Parameters:
      config - configuration node with additional properties that are (maybe) configured for this interceptor
      Returns:
      an interceptor to handle DB statements