Package ro.fortsoft.pf4j

Examples of ro.fortsoft.pf4j.PluginClassLoader.loadClass()


  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


  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.