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

io.quarkus.jdbc.mariadb.runtime.graal.SocketUtility_Substitutions Maven / Gradle / Ivy

There is a newer version: 3.17.0
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy