Package com.google.singletondetector.classpath

Examples of com.google.singletondetector.classpath.JarClasspathRoot


    // Get the classpath for the classes directory or jar
    URL root = new File(dir).toURI().toURL();
    ClasspathRoot classpath;
    if (dir.endsWith(".jar")) {
      classpath = new JarClasspathRoot(root);
    } else {
      classpath = new DirectoryClasspathRoot(root);
    }

    // Get the class readers for each class
View Full Code Here


          }
        }
      } else if (resource.endsWith(".jar")) {
        String temp = root.getPath() + packageName + resource;
        URL jarRoot = new File(temp).toURI().toURL();
        ClasspathRoot jarPath = new JarClasspathRoot(jarRoot);
        buildCrlist(jarRoot, jarPath, prefix, "", crlist, verbose);
      } else {
        buildCrlist(root, classpath, prefix, packageName + resource + "/", crlist,
            verbose);
      }
View Full Code Here

TOP

Related Classes of com.google.singletondetector.classpath.JarClasspathRoot

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.