- All Known Implementing Classes:
JdbcDbClientProvider
,MongoDbClientProvider
public interface DbClientProvider
Java Service loader interface that provides drivers for a database (or a set of databases).
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The implementation should provide its implementation of theDbClientProviderBuilder
.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
DbClientProviderBuilder<?> builder()The implementation should provide its implementation of theDbClientProviderBuilder
.- Returns:
- a new builder instance
-