Package jenkins.util
Class AntClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- org.apache.tools.ant.AntClassLoader
-
- jenkins.util.AntClassLoader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,EventListener
,JenkinsClassLoader
,org.apache.tools.ant.BuildListener
,org.apache.tools.ant.SubBuildListener
- Direct Known Subclasses:
PluginFirstClassLoader
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class AntClassLoader extends org.apache.tools.ant.AntClassLoader implements JenkinsClassLoader
Deprecated.useURLClassLoader2
AntClassLoader
with loosened visibility for use withClassLoaderReflectionToolkit
.
-
-
Constructor Summary
Constructors Constructor Description AntClassLoader()
Deprecated.AntClassLoader(ClassLoader parent, boolean parentFirst)
Deprecated.AntClassLoader(ClassLoader parent, org.apache.tools.ant.Project project, org.apache.tools.ant.types.Path classpath)
Deprecated.AntClassLoader(ClassLoader parent, org.apache.tools.ant.Project project, org.apache.tools.ant.types.Path classpath, boolean parentFirst)
Deprecated.AntClassLoader(org.apache.tools.ant.Project project, org.apache.tools.ant.types.Path classpath)
Deprecated.AntClassLoader(org.apache.tools.ant.Project project, org.apache.tools.ant.types.Path classpath, boolean parentFirst)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addPathFiles(Collection<File> paths)
Deprecated.Class<?>
findLoadedClass2(String name)
Deprecated.Public version ofClassLoader.findLoadedClass(String)
URL
findResource(String name)
Deprecated.Public version ofClassLoader.findResource(String)
Enumeration<URL>
findResources(String name)
Deprecated.Public version ofClassLoader.findResources(String)
Object
getClassLoadingLock(String className)
Deprecated.Public version ofClassLoader.getClassLoadingLock(String)
-
Methods inherited from class org.apache.tools.ant.AntClassLoader
addJavaLibraries, addLoaderPackageRoot, addPathComponent, addPathElement, addPathFile, addSystemPackageRoot, buildFinished, buildStarted, cleanup, close, defineClassFromData, definePackage, definePackage, findClass, findResources, forceLoadClass, forceLoadSystemClass, getClasspath, getConfiguredParent, getNamedResources, getResource, getResourceAsStream, getResources, getResourceURL, initializeClass, isInPath, loadClass, log, messageLogged, newAntClassLoader, resetThreadContextLoader, setClassPath, setIsolated, setParent, setParentFirst, setProject, setThreadContextLoader, subBuildFinished, subBuildStarted, targetFinished, targetStarted, taskFinished, taskStarted, toString
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jenkins.util.JenkinsClassLoader
findClass
-
-
-
-
Constructor Detail
-
AntClassLoader
public AntClassLoader(ClassLoader parent, org.apache.tools.ant.Project project, org.apache.tools.ant.types.Path classpath)
Deprecated.
-
AntClassLoader
public AntClassLoader()
Deprecated.
-
AntClassLoader
public AntClassLoader(org.apache.tools.ant.Project project, org.apache.tools.ant.types.Path classpath)
Deprecated.
-
AntClassLoader
public AntClassLoader(ClassLoader parent, org.apache.tools.ant.Project project, org.apache.tools.ant.types.Path classpath, boolean parentFirst)
Deprecated.
-
AntClassLoader
public AntClassLoader(org.apache.tools.ant.Project project, org.apache.tools.ant.types.Path classpath, boolean parentFirst)
Deprecated.
-
AntClassLoader
public AntClassLoader(ClassLoader parent, boolean parentFirst)
Deprecated.
-
-
Method Detail
-
addPathFiles
public void addPathFiles(Collection<File> paths) throws IOException
Deprecated.- Throws:
IOException
-
findResource
public URL findResource(String name)
Deprecated.Description copied from interface:JenkinsClassLoader
Public version ofClassLoader.findResource(String)
- Specified by:
findResource
in interfaceJenkinsClassLoader
- Overrides:
findResource
in classorg.apache.tools.ant.AntClassLoader
-
findResources
public Enumeration<URL> findResources(String name) throws IOException
Deprecated.Description copied from interface:JenkinsClassLoader
Public version ofClassLoader.findResources(String)
- Specified by:
findResources
in interfaceJenkinsClassLoader
- Overrides:
findResources
in classorg.apache.tools.ant.AntClassLoader
- Throws:
IOException
-
findLoadedClass2
public Class<?> findLoadedClass2(String name)
Deprecated.Description copied from interface:JenkinsClassLoader
Public version ofClassLoader.findLoadedClass(String)
- Specified by:
findLoadedClass2
in interfaceJenkinsClassLoader
-
getClassLoadingLock
public Object getClassLoadingLock(String className)
Deprecated.Description copied from interface:JenkinsClassLoader
Public version ofClassLoader.getClassLoadingLock(String)
- Specified by:
getClassLoadingLock
in interfaceJenkinsClassLoader
- Overrides:
getClassLoadingLock
in classClassLoader
-
-