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

ru.yandex.qatools.allure.data.plugins.PluginLoaderSpi Maven / Gradle / Ivy

package ru.yandex.qatools.allure.data.plugins;

import com.google.inject.Inject;
import ru.yandex.qatools.allure.data.utils.ServiceLoaderUtils;

import java.util.List;

/**
 * @author Dmitry Baev [email protected]
 *         Date: 17.02.15
 */
public class PluginLoaderSpi implements PluginLoader {

    private ClassLoader classLoader;

    @Inject
    public PluginLoaderSpi(@PluginClassLoader ClassLoader classLoader) {
        this.classLoader = classLoader;
    }

    @Override
    public List loadPlugins() {
        return ServiceLoaderUtils.load(classLoader, Plugin.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy