Examples of PluginClassLoader


Examples of plugin.loader.PluginClassLoader

public class Starter {

  private static Jif instance;

  public static void main(String[] args) {
    PluginClassLoader loader = null;
    loader = new PluginClassLoader(new File[] { (new File("filters/")) });
    loader.loadPlugins(new File[] { (new File("filters/color/")),
        new File("plugin/examples/math") });
    instance = Jif.getInstance();
  }
View Full Code Here

Examples of ro.fortsoft.pf4j.PluginClassLoader

  }

  @Override
  public synchronized List<Class<?>> getExtensionClasses(String pluginId) {
    List<Class<?>> list = new ArrayList<Class<?>>();
    PluginClassLoader loader = pf4j.getPluginClassLoader(pluginId);
    for (String className : pf4j.getExtensionClassNames(pluginId)) {
      try {
        list.add(loader.loadClass(className));
      } catch (ClassNotFoundException e) {
        logger.error(String.format("Failed to find %s in %s", className, pluginId), e);
      }
    }
    return list;
View Full Code Here

Examples of ro.fortsoft.pf4j.PluginClassLoader

  }

  @Override
  public synchronized List<Class<?>> getExtensionClasses(String pluginId) {
    List<Class<?>> list = new ArrayList<Class<?>>();
    PluginClassLoader loader = pf4j.getPluginClassLoader(pluginId);
    for (String className : pf4j.getExtensionClassNames(pluginId)) {
      try {
        list.add(loader.loadClass(className));
      } catch (ClassNotFoundException e) {
        logger.error(String.format("Failed to find %s in %s", className, pluginId), e);
      }
    }
    return list;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.