Search in sources :

Example 1 with PluginClassLoader

use of com.buschmais.jqassistant.core.plugin.api.PluginClassLoader in project jqa-core-framework by buschmais.

the class AetherPluginResolverImpl method createClassLoader.

@Override
public PluginClassLoader createClassLoader(ClassLoader parent, List<Plugin> plugins) {
    List<Dependency> requiredPlugins = getRequiredPluginDependencies(plugins);
    DependencyResult dependencyResult = resolvePlugins(requiredPlugins);
    return new PluginClassLoader(getDependencyURLs(dependencyResult), parent);
}
Also used : DependencyResult(org.eclipse.aether.resolution.DependencyResult) Dependency(org.eclipse.aether.graph.Dependency) PluginClassLoader(com.buschmais.jqassistant.core.plugin.api.PluginClassLoader)

Aggregations

PluginClassLoader (com.buschmais.jqassistant.core.plugin.api.PluginClassLoader)1 Dependency (org.eclipse.aether.graph.Dependency)1 DependencyResult (org.eclipse.aether.resolution.DependencyResult)1