Package jenkins.util
Class URLClassLoader2
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- jenkins.util.URLClassLoader2
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,JenkinsClassLoader
- Direct Known Subclasses:
PluginFirstClassLoader2
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class URLClassLoader2 extends URLClassLoader implements JenkinsClassLoader
URLClassLoader
with loosened visibility for use withClassLoaderReflectionToolkit
.
-
-
Constructor Summary
Constructors Constructor Description URLClassLoader2(URL[] urls)
URLClassLoader2(URL[] urls, ClassLoader parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addURL(URL url)
Class<?>
findClass(String name)
Public version ofClassLoader.findClass(String)
Class<?>
findLoadedClass2(String name)
Public version ofClassLoader.findLoadedClass(String)
Object
getClassLoadingLock(String className)
Public version ofClassLoader.getClassLoadingLock(String)
-
Methods inherited from class java.net.URLClassLoader
close, definePackage, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
-
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
-
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, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jenkins.util.JenkinsClassLoader
findResource, findResources
-
-
-
-
Constructor Detail
-
URLClassLoader2
public URLClassLoader2(URL[] urls)
-
URLClassLoader2
public URLClassLoader2(URL[] urls, ClassLoader parent)
-
-
Method Detail
-
addURL
public void addURL(URL url)
- Overrides:
addURL
in classURLClassLoader
-
findClass
public Class<?> findClass(String name) throws ClassNotFoundException
Description copied from interface:JenkinsClassLoader
Public version ofClassLoader.findClass(String)
- Specified by:
findClass
in interfaceJenkinsClassLoader
- Overrides:
findClass
in classURLClassLoader
- Throws:
ClassNotFoundException
-
findLoadedClass2
public Class<?> findLoadedClass2(String name)
Description copied from interface:JenkinsClassLoader
Public version ofClassLoader.findLoadedClass(String)
- Specified by:
findLoadedClass2
in interfaceJenkinsClassLoader
-
getClassLoadingLock
public Object getClassLoadingLock(String className)
Description copied from interface:JenkinsClassLoader
Public version ofClassLoader.getClassLoadingLock(String)
- Specified by:
getClassLoadingLock
in interfaceJenkinsClassLoader
- Overrides:
getClassLoadingLock
in classClassLoader
-
-