Home » openjdk-7 » com.sun.tools » javac » file » [javadoc | source]
com.sun.tools.javac.file
class: CloseableURLClassLoader [javadoc | source]
java.lang.Object
   java.lang.ClassLoader
      java.security.SecureClassLoader
         java.net.URLClassLoader
            com.sun.tools.javac.file.CloseableURLClassLoader

All Implemented Interfaces:
    Closeable

A URLClassLoader that also implements Closeable. Reflection is used to access internal data structures in the URLClassLoader, since no public API exists for this purpose. Therefore this code is somewhat fragile. Caveat emptor.
Fields inherited from java.net.URLClassLoader:
ucp
Fields inherited from java.lang.ClassLoader:
nocerts,  classAssertionStatus
Constructor:
 CloseableURLClassLoader(URL[] urls,
    ClassLoader parent) throws Error 
Method from com.sun.tools.javac.file.CloseableURLClassLoader Summary:
close
Methods from java.net.URLClassLoader:
access$000,   access$100,   addURL,   definePackage,   findClass,   findResource,   findResources,   getPermissions,   getURLs,   newInstance,   newInstance
Methods from java.security.SecureClassLoader:
defineClass,   defineClass,   getPermissions
Methods from java.lang.ClassLoader:
access$000,   access$100,   addClass,   clearAssertionStatus,   defineClass,   defineClass,   defineClass,   defineClass,   definePackage,   desiredAssertionStatus,   findClass,   findLibrary,   findLoadedClass,   findNative,   findResource,   findResources,   findSystemClass,   getBootstrapClassPath,   getCallerClassLoader,   getPackage,   getPackages,   getParent,   getResource,   getResourceAsStream,   getResources,   getSystemClassLoader,   getSystemResource,   getSystemResourceAsStream,   getSystemResources,   isAncestor,   loadClass,   loadClass,   loadLibrary,   resolveClass,   setClassAssertionStatus,   setDefaultAssertionStatus,   setPackageAssertionStatus,   setSigners
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.tools.javac.file.CloseableURLClassLoader Detail:
 public  void close() throws IOException 
    Close any jar files that may have been opened by the class loader. Reflection is used to access the jar files in the URLClassLoader's internal data structures.