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

io.quarkus.jaxb.runtime.JaxbContextConfigRecorder Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy