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

org.jetbrains.jps.plugin.impl.JpsPluginManagerImpl Maven / Gradle / Ivy

Go to download

A packaging of the IntelliJ Community Edition jps-plugin-system library. This is release number 1 of trunk branch 142.

The newest version!
package org.jetbrains.jps.plugin.impl;

import com.intellij.util.containers.ContainerUtilRt;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.plugin.JpsPluginManager;

import java.util.Collection;
import java.util.ServiceLoader;

/**
 * @author nik
 */
public class JpsPluginManagerImpl extends JpsPluginManager {
  @NotNull
  @Override
  public  Collection loadExtensions(@NotNull Class extensionClass) {
    ServiceLoader loader = ServiceLoader.load(extensionClass, extensionClass.getClassLoader());
    return ContainerUtilRt.newArrayList(loader);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy