what-the-bank/sources/io/grpc/InternalServiceProviders.java

36 lines
1.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package io.grpc;
import io.grpc.ServiceProviders;
import java.util.List;
/* loaded from: classes6.dex */
public final class InternalServiceProviders {
/* loaded from: classes6.dex */
public interface PriorityAccessor<T> extends ServiceProviders.PriorityAccessor<T> {
}
private InternalServiceProviders() {
}
public static <T> T load(Class<T> cls, Iterable<Class<?>> iterable, ClassLoader classLoader, PriorityAccessor<T> priorityAccessor) {
return (T) ServiceProviders.load(cls, iterable, classLoader, priorityAccessor);
}
public static <T> List<T> loadAll(Class<T> cls, Iterable<Class<?>> iterable, ClassLoader classLoader, PriorityAccessor<T> priorityAccessor) {
return ServiceProviders.loadAll(cls, iterable, classLoader, priorityAccessor);
}
public static <T> Iterable<T> getCandidatesViaServiceLoader(Class<T> cls, ClassLoader classLoader) {
return ServiceProviders.getCandidatesViaServiceLoader(cls, classLoader);
}
public static <T> Iterable<T> getCandidatesViaHardCoded(Class<T> cls, Iterable<Class<?>> iterable) {
return ServiceProviders.getCandidatesViaHardCoded(cls, iterable);
}
public static boolean isAndroid(ClassLoader classLoader) {
return ServiceProviders.isAndroid(classLoader);
}
}