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

org.pitest.mutationtest.config.ServicesFromClassLoader Maven / Gradle / Ivy

There is a newer version: 1.17.1
Show newest version
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);
    }
}