- 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 TypeMethodDescriptionbuilder()
The implementation should provide its implementation of theDbClientBuilder
.name()
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
ormongo
-
builder
DbClientBuilder<?> builder()The implementation should provide its implementation of theDbClientBuilder
.- Returns:
- a new builder instance
-