|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.ClassLoader
|
+--org.apache.tools.ant.AntClassLoader
|
+--org.apache.tools.ant.loader.AntClassLoader2
An implementation of the AntClassLoader suitable for use on post JDK 1.1 platforms
| Constructor Summary | |
AntClassLoader2()
Constructor |
|
| Method Summary | |
protected void |
addPathFile(java.io.File pathComponent)
Add a file to the path. |
protected java.lang.Class |
defineClassFromData(java.io.File container,
byte[] classData,
java.lang.String className)
Define a class given its bytes |
protected void |
definePackage(java.io.File container,
java.lang.String className)
Define the package information associated with a class. |
protected void |
definePackage(java.io.File container,
java.lang.String packageName,
java.util.jar.Manifest manifest)
Define the package information when the class comes from a jar with a manifest |
| Methods inherited from class org.apache.tools.ant.AntClassLoader |
addJavaLibraries, addLoaderPackageRoot, addPathElement, addSystemPackageRoot, buildFinished, buildStarted, cleanup, findClass, findResources, forceLoadClass, forceLoadSystemClass, getClasspath, getResource, getResourceAsStream, getResourceURL, initializeClass, isInPath, loadClass, log, messageLogged, resetThreadContextLoader, setClassPath, setIsolated, setParent, setParentFirst, setProject, setThreadContextLoader, subBuildFinished, subBuildStarted, targetFinished, targetStarted, taskFinished, taskStarted |
| Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findSystemClass, getPackage, getPackages, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AntClassLoader2()
| Method Detail |
protected java.lang.Class defineClassFromData(java.io.File container,
byte[] classData,
java.lang.String className)
throws java.io.IOException
defineClassFromData in class AntClassLoadercontainer - the container from which the class data has been read
may be a directory or a jar/zip file.classData - the bytecode data for the classclassName - the name of the class
java.io.IOException - if the class data cannot be read.
protected void definePackage(java.io.File container,
java.lang.String className)
throws java.io.IOException
container - the file containing the class definition.className - the class name of for which the package information
is to be determined.
java.io.IOException - if the package information cannot be read from the
container.
protected void definePackage(java.io.File container,
java.lang.String packageName,
java.util.jar.Manifest manifest)
container - the jar file containing the manifestpackageName - the name of the package being defined.manifest - the jar's manifest
protected void addPathFile(java.io.File pathComponent)
throws java.io.IOException
addPathFile in class AntClassLoaderpathComponent - the file which is to be added to the path for
this class loader
java.io.IOException - if data needed from the file cannot be read.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||