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

io.quarkus.changeagent.ClassChangeAgent Maven / Gradle / Ivy

Go to download

A Java Agent that exposes the instrumentation API. This allows for super fast hot reloads if there have been no changes to the structure of the class files. This agent is not required for hot reload, it just provides an optimisation in some circumstances.

The newest version!
package io.quarkus.changeagent;

import java.lang.instrument.Instrumentation;

public class ClassChangeAgent {

    private static volatile Instrumentation instrumentation;

    public static Instrumentation getInstrumentation() {
        return instrumentation;
    }

    public static void premain(java.lang.String s, Instrumentation i) {
        instrumentation = i;

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy