Package freenet.support

Examples of freenet.support.JarClassLoader.loadClass()


        Closer.close(pluginJarFile);
      }

      try {
        JarClassLoader jarClassLoader = new JarClassLoader(pluginFile);
        Class<?> pluginMainClass = jarClassLoader.loadClass(pluginMainClassName);
        Object object = pluginMainClass.newInstance();
        if(!(object instanceof FredPlugin)) {
          Logger.error(this, "plugin main class is not a plugin");
          pluginFile.delete();
          if(!downloaded) continue;
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.