Class ConditionallyDelegatingUrlClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- com.atlassian.bamboo.agent.bootstrap.classloading.ConditionallyDelegatingUrlClassLoader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ConditionallyDelegatingUrlClassLoader extends URLClassLoader
-
-
Constructor Summary
Constructors Constructor Description ConditionallyDelegatingUrlClassLoader(URL[] urls)
ConditionallyDelegatingUrlClassLoader(URL[] urls, ClassLoader parent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
loadClass(String name)
static void
main(String[] args)
-
Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findClass, 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, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Constructor Detail
-
ConditionallyDelegatingUrlClassLoader
public ConditionallyDelegatingUrlClassLoader(URL[] urls)
-
ConditionallyDelegatingUrlClassLoader
public ConditionallyDelegatingUrlClassLoader(URL[] urls, ClassLoader parent)
-
-
Method Detail
-
loadClass
public Class<?> loadClass(String name) throws ClassNotFoundException
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
main
public static void main(String[] args) throws MalformedURLException, ClassNotFoundException
-
-