Package l2p.extensions.scripts.jarloader

Examples of l2p.extensions.scripts.jarloader.JarClassLoader


   
    Class<?> c;
    JAR = new File("./scripts.jar").exists();
    if(JAR)
    {
      JarClassLoader jcl;
      try
      {
        jcl = new JarClassLoader("./scripts.jar");
        for(String name : jcl.getClassNames())
        {
          if(!name.contains(".class"))
          {
            continue;
          }
          if(name.contains("$"))
          {
            continue;
          } // пропускаем вложенные классы
          name = name.replace(".class", "").replace("/", ".");
          c = jcl.loadClass(name);
          Script s = new Script(c);
          _classes.put(c.getName(), s);
        }
      }
      catch(Exception e)
View Full Code Here

TOP

Related Classes of l2p.extensions.scripts.jarloader.JarClassLoader

Copyright © 2018 www.massapicom. 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.