Search in sources :

Example 1 with PluginComponent

use of alien4cloud.plugin.model.PluginComponent in project alien4cloud by alien4cloud.

the class RepositoryService method listPluginComponents.

public List<RepositoryPluginComponent> listPluginComponents() {
    List<RepositoryPluginComponent> repositoryPluginComponents = new ArrayList<>();
    List<PluginComponent> pluginComponents = pluginManager.getPluginComponents(IArtifactResolver.class.getSimpleName());
    repositoryPluginComponents.addAll(pluginComponents.stream().map(pluginComponent -> new RepositoryPluginComponent(pluginComponent, getResolverFactoryOrFail(pluginComponent.getPluginId()).getResolverType())).collect(Collectors.toList()));
    return repositoryPluginComponents;
}
Also used : RepositoryPluginComponent(alien4cloud.repository.model.RepositoryPluginComponent) PluginComponent(alien4cloud.plugin.model.PluginComponent) RepositoryPluginComponent(alien4cloud.repository.model.RepositoryPluginComponent) IArtifactResolver(alien4cloud.component.repository.IArtifactResolver) ArrayList(java.util.ArrayList)

Aggregations

IArtifactResolver (alien4cloud.component.repository.IArtifactResolver)1 PluginComponent (alien4cloud.plugin.model.PluginComponent)1 RepositoryPluginComponent (alien4cloud.repository.model.RepositoryPluginComponent)1 ArrayList (java.util.ArrayList)1