- All Known Implementing Classes:
DbClientMetricsProvider,DbClientTracingProvider
public interface DbClientServiceProvider
Java service loader service to configure client services.
-
Method Summary
Modifier and TypeMethodDescriptionThe configuration key expected in config.default Collection<DbClientService> Deprecated, for removal: This API element is subject to removal in a future version.default Collection<DbClientService> 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 intoglobal,named, andtypedsub keys to configure appropriate instances. Methodcreate(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
@Deprecated(since="4.4.0", forRemoval=true) default Collection<DbClientService> create(Config config) Deprecated, for removal: This API element is subject to removal in a future version.usecreate(io.helidon.config.Config)insteadCreate 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
-
create
Create a new interceptor instance with the configuration provided.API Note: the default method implementation is provided for backward compatibility and will be removed in the next major version
- Parameters:
config- configuration node with additional properties that are (maybe) configured for this interceptor- Returns:
- an interceptor to handle DB statements
- Since:
- 4.4.0
-
create(io.helidon.config.Config)instead