io.quarkus.jdbc.mariadb.runtime.graal.Pool_disable_JMX 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.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
}
}