io.quarkus.jdbc.mariadb.runtime.graal.SocketUtility_Substitutions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-jdbc-mariadb Show documentation
Show all versions of quarkus-jdbc-mariadb Show documentation
Connect to the MariaDB database via JDBC
package io.quarkus.jdbc.mariadb.runtime.graal;
import org.mariadb.jdbc.client.socket.impl.SocketHandlerFunction;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;
@TargetClass(org.mariadb.jdbc.client.socket.impl.SocketUtility.class)
public final class SocketUtility_Substitutions {
// Ensure that JNA is never used
@Substitute
public static SocketHandlerFunction getSocketHandler() {
return new SimpleSocketHandlerFunction();
}
}