org.pitest.mutationtest.config.ServicesFromClassLoader Maven / Gradle / Ivy
package org.pitest.mutationtest.config;
import org.pitest.util.ServiceLoader;
import java.util.Collection;
public class ServicesFromClassLoader implements Services {
private final ClassLoader loader;
public ServicesFromClassLoader(ClassLoader loader) {
this.loader = loader;
}
@Override
public Collection load(Class ifc) {
return ServiceLoader.load(ifc, loader);
}
}