io.quarkus.hibernate.reactive.runtime.customized.QuarkusNoJdbcConnectionProviderInitiator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-hibernate-reactive Show documentation
Show all versions of quarkus-hibernate-reactive Show documentation
A reactive API for Hibernate ORM, supporting non-blocking database drivers and a reactive style of interaction with the database.
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;
}
}