-
- 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DbClientProviderBuilder<?>
builder()
The implementation should provide its implementation of theDbClientProviderBuilder
.String
name()
Name of this provider.
-
-
-
Method Detail
-
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
-
-