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

io.quarkus.hibernate.reactive.runtime.customized.QuarkusNoJdbcConnectionProviderInitiator Maven / Gradle / Ivy

Go to download

A reactive API for Hibernate ORM, supporting non-blocking database drivers and a reactive style of interaction with the database.

There is a newer version: 3.15.0
Show newest version
package io.quarkus.hibernate.reactive.runtime.customized;

import java.util.Map;

import org.hibernate.boot.registry.StandardServiceInitiator;
import org.hibernate.engine.jdbc.connections.spi.ConnectionProvider;
import org.hibernate.reactive.provider.service.NoJdbcConnectionProvider;
import org.hibernate.service.spi.ServiceRegistryImplementor;

public class QuarkusNoJdbcConnectionProviderInitiator implements StandardServiceInitiator {
    public static final QuarkusNoJdbcConnectionProviderInitiator INSTANCE = new QuarkusNoJdbcConnectionProviderInitiator();

    private QuarkusNoJdbcConnectionProviderInitiator() {
    }

    @Override
    public ConnectionProvider initiateService(Map configurationValues, ServiceRegistryImplementor registry) {
        return NoJdbcConnectionProvider.INSTANCE;
    }

    @Override
    public Class getServiceInitiated() {
        return ConnectionProvider.class;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy