org.jboss.resteasy.reactive.server.jaxrs.ContextResolverDelegate Maven / Gradle / Ivy
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