Class JdbcDatasourceUtil
- java.lang.Object
-
- io.quarkus.kubernetes.service.binding.runtime.JdbcDatasourceUtil
-
public class JdbcDatasourceUtil extends Object
This utility collects the conversion of Service types that correspond to JDBC data-sources into a single place as the code for all is the same. This inevitably results in datasource related logic being places inside this (otherwise) service binding agnostic module, but it's a small price to pay compared to the alternative of copying and pasting the same code for all JDBC data-sources.
-
-
Constructor Summary
Constructors Constructor Description JdbcDatasourceUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<ServiceBindingConfigSource>convert(List<ServiceBinding> serviceBindings, String type)static Optional<ServiceBindingConfigSource>convert(List<ServiceBinding> serviceBindings, String bindingType, String urlType)
-
-
-
Method Detail
-
convert
public static Optional<ServiceBindingConfigSource> convert(List<ServiceBinding> serviceBindings, String type)
-
convert
public static Optional<ServiceBindingConfigSource> convert(List<ServiceBinding> serviceBindings, String bindingType, String urlType)
-
-