Package com.subhajit.common.classloaders

Examples of com.subhajit.common.classloaders.URLClassLoaderX


    }
    final URL[] urls = urlsList.toArray(new URL[0]);
    return new PrivilegedExceptionAction<URLClassLoader>() {
      public URLClassLoader run() throws IOException,
          ClassNotFoundException {
        return new URLClassLoaderX(urls, getClass().getClassLoader(),
            progress);
      }
    }.run();
  }
View Full Code Here


      ClassNotFoundException {
    List<URL> urls = new ArrayList<URL>();
    for (File jarFile : classElements) {
      urls.add(jarFile.toURI().toURL());
    }
    return new URLClassLoaderX(urls.toArray(ZERO_LENGTH_URL_ARRAY), parent);
  }
View Full Code Here

    for (EclipseMetafile dependency : dependencies) {
      if (dependency instanceof CompiledJar) {
        urls.add(dependency.getFile().toURL());
      }
    }
    return new URLClassLoaderX(urls.toArray(new URL[0]));
  }
View Full Code Here

          ClassNotFoundException {
        List<URL> urls = new ArrayList<URL>();
        for (File element : elements) {
          urls.add(element.toURI().toURL());
        }
        return new URLClassLoaderX(urls.toArray(new URL[0]), parent);
      }
    }.run();
  }
View Full Code Here

        urls.add(dependentProject.getOutputDirectory().toURI().toURL());
      } else if (dependent instanceof EclipseClasspath) {
        // EclipseClasspath classpath = ( EclipseClasspath )dependent;
      }
    }
    return new URLClassLoaderX(urls.toArray(ZERO_LENGTH_URL_ARRAY));
  }
View Full Code Here

              .getModel()).getValueAt(selectedRow, 0);
          String value1 = (String) ((DefaultTableModel) table
              .getModel()).getValueAt(selectedRow, 1);
          table.putClientProperty("rowAtPoint", null);
          final String className = value1 + "." + value0;
          final URLClassLoader classLoader = new URLClassLoaderX(
              new URL[] { jarFile.toURI().toURL() });
          final String packagesListStr = Dialog.ask(
              "Packages of interest",
              "com.sun.idm.*,com.waveset.*,com.subhajit.*", 400,
              300);
View Full Code Here

    super();
    URL[] urls = new URL[jarFiles.size()];
    for (int i = 0; i < jarFiles.size(); i++) {
      urls[i] = jarFiles.get(i).toURI().toURL();
    }
    scl = new URLClassLoaderX(urls);
  }
View Full Code Here

    System.arraycopy(inputJars, 0, this.inputJars, 0, inputJars.length);
    URL[] urls = new URL[inputJars.length];
    for (int i = 0; i < inputJars.length; i++) {
      urls[i] = inputJars[i].toURI().toURL();
    }
    repository = new ClassLoaderRepository(new URLClassLoaderX(urls,
        getClass().getClassLoader()));
  }
View Full Code Here

      // Create a class loader from the classpath.
      Map<String, Set<String>> subclassMap = CodeAnalysisUtils
          .generateSubclassMap(classLoader);
      // Generate a subclass map using the runtime jar file.
      Map<String, Set<String>> runtimeSubclassMap = CodeAnalysisUtils
          .generateSubclassMap(new URLClassLoaderX(
              new URL[] { RuntimeJar.getRuntimeJar().toURI()
                  .toURL() }));
      subclassMap.putAll(runtimeSubclassMap);

      // Find the topmost superclass of className below Object.
View Full Code Here

    super();
    URL[] urls = new URL[jarFiles.size()];
    for (int i = 0; i < jarFiles.size(); i++) {
      urls[i] = jarFiles.get(i).toURI().toURL();
    }
    scl = new URLClassLoaderX(urls);
  }
View Full Code Here

TOP

Related Classes of com.subhajit.common.classloaders.URLClassLoaderX

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.