Top Constructors Methods
org.apache.tools.ant.loader

public Class AntClassLoader5

extends AntClassLoader
Class Inheritance
Imports
org.apache.tools.ant.AntClassLoader, .Project, org.apache.tools.ant.types.Path

Deprecated

since 1.9.7 Just use AntClassLoader itself.

Constructor Summary

AccessConstructor and Description
public
AntClassLoader5(ClassLoader
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.
parent
,
Project
The project to which this classloader is to belong. Must not be null.
project
,
Path
the classpath to use to load the classes. May be null, in which case no path elements are set up to start with.
classpath
,
boolean
If true, indicates that the parent classloader should be consulted before trying to load the a class through this loader.
parentFirst
)

Creates a classloader for the given project using the classpath given.

Method Summary

Inherited from org.apache.tools.ant.AntClassLoader:
addJavaLibrariesaddLoaderPackageRootaddPathComponentaddPathElementaddPathFileaddSystemPackageRootbuildFinishedbuildStartedcleanupclosedefineClassFromDatadefinePackagedefinePackagefindClassfindResourcefindResourcesfindResourcesforceLoadClassforceLoadSystemClassgetClasspathgetConfiguredParentgetNamedResourcesgetResourcegetResourceAsStreamgetResourcesgetResourceURLinitializeClassisInPathloadClasslogmessageLoggednewAntClassLoaderresetThreadContextLoadersetClassPathsetIsolatedsetParentsetParentFirstsetProjectsetThreadContextLoadersubBuildFinishedsubBuildStartedtargetFinishedtargetStartedtaskFinishedtaskStartedtoString

Constructor Detail

AntClassLoader5back to summary
public AntClassLoader5(ClassLoader parent, Project project, Path classpath, boolean parentFirst)

Creates a classloader for the given project using the classpath given.

Parameters
parent:ClassLoader

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:Project

The project to which this classloader is to belong. Must not be null.

classpath:Path

the classpath to use to load the classes. May be null, in which case no path elements are set up to start with.

parentFirst:boolean

If true, indicates that the parent classloader should be consulted before trying to load the a class through this loader.