io.quarkus.jaxb.runtime.JaxbContextConfigRecorder Maven / Gradle / Ivy
package io.quarkus.jaxb.runtime;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import io.quarkus.runtime.annotations.Recorder;
@Recorder
public class JaxbContextConfigRecorder {
private volatile static Set> classesToBeBound = new HashSet<>();
public void addClassesToBeBound(Collection> classes) {
this.classesToBeBound.addAll(classes);
}
public void reset() {
classesToBeBound.clear();
}
public static Set> getClassesToBeBound() {
return Collections.unmodifiableSet(classesToBeBound);
}
public static boolean isClassBound(Class> clazz) {
return classesToBeBound.contains(clazz);
}
}