Examples of URLClassPath


Examples of sun.misc.URLClassPath

    if (isNonTransformable(name)) {
      return super.findClass(name);
    }

    String path = name.replace('.', '/').concat(".class");
    Resource res = new URLClassPath(getURLs()).getResource(path, false);
    if (res != null) {
      try {
        byte[] b = res.getBytes();
        byte[] transformed = transformer.transform(this, name, null,
            null, b);
View Full Code Here

Examples of sun.misc.URLClassPath

        super(urls, parent);
    }

    protected Class findClass(String name) throws ClassNotFoundException {
        String path = name.replace('.', '/').concat(".class");
        Resource res = new URLClassPath(getURLs()).getResource(path, false);
        if (res != null) {
            //definePackage(name.substring(0, name.lastIndexOf(".")), null, null);
            try {
                byte[] b = res.getBytes();
                byte[] transformed = ClassPreProcessorHelper.defineClass0Pre(this, name, b, 0, b.length, null);
View Full Code Here

Examples of sun.misc.URLClassPath

        }
    }

    private static URL[] getOrigClassPath(URLClassLoader classLoader, Field ucpField) throws IllegalAccessException {
        URL[] origClassPath;
        URLClassPath urlClassPath = (URLClassPath) ucpField.get(classLoader);
        if (urlClassPath instanceof ExtraURLClassPath) {
            origClassPath = ((ExtraURLClassPath)urlClassPath).getOrigClassPath();
        } else {
            origClassPath = classLoader.getURLs();
        }
View Full Code Here

Examples of sun.misc.URLClassPath

        super(urls, parent);
    }

    protected Class findClass(String name) throws ClassNotFoundException {
        String path = name.replace('.', '/').concat(".class");
        Resource res = new URLClassPath(getURLs()).getResource(path, false);
        if (res != null) {
            //definePackage(name.substring(0, name.lastIndexOf(".")), null, null);
            try {
                byte[] b = res.getBytes();
                byte[] transformed = ClassPreProcessorHelper.defineClass0Pre(this, name, b, 0, b.length, null);
View Full Code Here

Examples of sun.misc.URLClassPath

    /**
     * Find resources from the VM's built-in classloader.
     */
    private static URL getBootstrapResource(String name) {
        URLClassPath ucp = getBootstrapClassPath();
        Resource res = ucp.getResource(name);
        return res != null ? res.getURL() : null;
    }
View Full Code Here

Examples of sun.misc.URLClassPath

    }

    protected Class findClass(String name)
    throws ClassNotFoundException {
        String path = name.replace('.', '/').concat(".class");
        Resource res = new URLClassPath(getURLs()).getResource(path, false);
        if (res != null) {
            //definePackage(name.substring(0, name.lastIndexOf(".")), null, null);
            try {
                byte[] b = res.getBytes();
                byte[] transformed = ClassPreProcessorHelper.defineClass0Pre(this, name, b, 0, b.length, null);
View Full Code Here

Examples of sun.misc.URLClassPath

        super(urls, parent);
    }

    protected Class findClass(String name) throws ClassNotFoundException {
        String path = name.replace('.', '/').concat(".class");
        Resource res = new URLClassPath(getURLs()).getResource(path, false);
        if (res != null) {
            //definePackage(name.substring(0, name.lastIndexOf(".")), null, null);
            try {
                byte[] b = res.getBytes();
                byte[] transformed = ClassPreProcessorHelper.defineClass0Pre(this, name, b, 0, b.length, null);
View Full Code Here

Examples of sun.misc.URLClassPath

        } catch (Throwable e) {
            log.warn("Could not install compiler: Could not obtain access to system class loader", e);
            return;
        }

        URLClassPath urlClassPath = getURLClassPath(urlClassLoader);
        if (urlClassPath == null) {
            // couldn't get the class path... error was already logged
            return;
        }
        urlClassPath.addURL(jar);

        rebuildJavaClassPathVariable(urlClassPath);
    }
View Full Code Here

Examples of sun.misc.URLClassPath

        super(urls, parent);
    }

    protected Class findClass(String name) throws ClassNotFoundException {
        String path = name.replace('.', '/').concat(".class");
        Resource res = new URLClassPath(getURLs()).getResource(path, false);
        if (res != null) {
            //definePackage(name.substring(0, name.lastIndexOf(".")), null, null);
            try {
                byte[] b = res.getBytes();
                byte[] transformed = ClassPreProcessorHelper.defineClass0Pre(this, name, b, 0, b.length, null);
View Full Code Here

Examples of sun.misc.URLClassPath

    /**
     * Find resources from the VM's built-in classloader.
     */
    private static URL getBootstrapResource(String name) {
  URLClassPath ucp = getBootstrapClassPath();
  Resource res = ucp.getResource(name);
  return res != null ? res.getURL() : null;
    }
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.