All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.jdbc.oracle.runtime.OracleServiceBindingConverter Maven / Gradle / Ivy

The newest version!
package io.quarkus.jdbc.oracle.runtime;

import java.util.List;
import java.util.Optional;

import io.quarkus.kubernetes.service.binding.runtime.DatasourceServiceBindingConfigSourceFactory;
import io.quarkus.kubernetes.service.binding.runtime.ServiceBinding;
import io.quarkus.kubernetes.service.binding.runtime.ServiceBindingConfigSource;
import io.quarkus.kubernetes.service.binding.runtime.ServiceBindingConverter;

public class OracleServiceBindingConverter implements ServiceBindingConverter {

    @Override
    public Optional convert(List serviceBindings) {
        return ServiceBinding.singleMatchingByType("oracle", serviceBindings)
                .map(new DatasourceServiceBindingConfigSourceFactory.Jdbc("jdbc:%s:thin:@%s%s/%s"));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy