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

org.jboss.resteasy.reactive.server.jaxrs.ContextResolverDelegate Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package org.jboss.resteasy.reactive.server.jaxrs;

import java.util.Collection;

import jakarta.ws.rs.ext.ContextResolver;

public class ContextResolverDelegate implements ContextResolver {

    private final Collection> delegates;

    public ContextResolverDelegate(Collection> delegates) {
        this.delegates = delegates;
    }

    @Override
    public T getContext(Class type) {
        for (ContextResolver delegate : delegates) {
            T context = delegate.getContext(type);
            if (context != null) {
                return context;
            }
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy