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

io.quarkus.resteasy.reactive.server.runtime.ParamConverterProvidersSupplier Maven / Gradle / Ivy

Go to download

A Jakarta REST implementation utilizing build time processing and Vert.x. This extension is not compatible with the quarkus-resteasy extension, or any of the extensions that depend on it.

The newest version!
package io.quarkus.resteasy.reactive.server.runtime;

import java.util.ArrayList;
import java.util.List;
import java.util.function.Supplier;

public class ParamConverterProvidersSupplier implements Supplier> {

    @Override
    public List get() {
        var providers = ResteasyReactiveRecorder.getCurrentDeployment().getParamConverterProviders()
                .getParamConverterProviders();
        var result = new ArrayList(providers.size());
        for (var provider : providers) {
            result.add(new Entry(provider.getClassName(), provider.getPriority()));
        }
        return result;
    }

    public static class Entry {
        private final String className;
        private final Integer priority;

        public Entry(String className, Integer priority) {
            this.className = className;
            this.priority = priority;
        }

        public String getClassName() {
            return className;
        }

        public Integer getPriority() {
            return priority;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy