|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.ClassLoader
org.apache.tools.ant.AntClassLoader
org.apache.tools.ant.loader.AntClassLoader5
public class AntClassLoader5
Overrides getResources which became non-final in Java5 and implements Closeable
| Constructor Summary | |
|---|---|
AntClassLoader5(java.lang.ClassLoader parent,
Project project,
Path classpath,
boolean parentFirst)
Creates a classloader for the given project using the classpath given. |
|
| Method Summary | |
|---|---|
void |
close()
|
java.util.Enumeration<java.net.URL> |
getResources(java.lang.String name)
|
| Methods inherited from class java.lang.ClassLoader |
|---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findSystemClass, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AntClassLoader5(java.lang.ClassLoader parent,
Project project,
Path classpath,
boolean parentFirst)
parent - The parent classloader to which unsatisfied loading
attempts are delegated. May be null,
in which case the classloader which loaded this
class is used as the parent.project - The project to which this classloader is to belong.
Must not be null.classpath - the classpath to use to load the classes.
May be null, in which case no path
elements are set up to start with.parentFirst - If true, indicates that the parent
classloader should be consulted before trying to
load the a class through this loader.| Method Detail |
|---|
public java.util.Enumeration<java.net.URL> getResources(java.lang.String name)
throws java.io.IOException
getResources in class java.lang.ClassLoaderjava.io.IOExceptionpublic void close()
close in interface java.io.Closeable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||