Interface DbClientProvider

All Known Implementing Classes:
JdbcClientProvider, MongoDbClientProvider

public interface DbClientProvider
Java ServiceLoader interface that provides drivers for a database (or a set of databases). This is DbClient SPI entry point which returns unique name of the provider and an implementation of the DbClient builder, the DbClientBuilder interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    The implementation should provide its implementation of the DbClientBuilder.
    Name of this provider.
  • Method Details

    • name

      String name()
      Name of this provider. This is used to find correct provider when using configuration only approach.
      Returns:
      provider name (such as jdbc or mongo
    • builder

      DbClientBuilder<?> builder()
      The implementation should provide its implementation of the DbClientBuilder.
      Returns:
      a new builder instance