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

io.quarkus.jdbc.mariadb.runtime.graal.Pool_disable_JMX 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.util.log.Logger;

import com.oracle.svm.core.annotate.Alias;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

@TargetClass(org.mariadb.jdbc.pool.Pool.class)
public final class Pool_disable_JMX {

    @Alias
    private static Logger logger = null;

    @Substitute
    private void registerJmx() throws Exception {
        logger.warn("MariaDB driver can't register to JMX MBeans in GraalVM: request to register ignored");
    }

    @Substitute
    private void unRegisterJmx() throws Exception {
        //no-op
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy