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

io.smallrye.graphql.client.model.ScanningContext Maven / Gradle / Ivy

There is a newer version: 2.12.0
Show newest version
package io.smallrye.graphql.client.model;

import org.jboss.jandex.IndexView;

public class ScanningContext {
    private static final ThreadLocal current = new ThreadLocal<>();

    public static void register(IndexView index) {
        ScanningContext registry = new ScanningContext(index);
        current.set(registry);
    }

    public static IndexView getIndex() {
        return current.get().index;
    }

    public static void remove() {
        current.remove();
    }

    private final IndexView index;

    private ScanningContext(final IndexView index) {
        this.index = index;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy