Package org.apache.spark.util
Class ChildFirstURLClassLoader
Object
ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.apache.spark.util.MutableURLClassLoader
org.apache.spark.util.ChildFirstURLClassLoader
- All Implemented Interfaces:
- Closeable,- AutoCloseable
A mutable class loader that gives preference to its own URLs over the parent class loader
 when loading classes and resources.
- 
Constructor SummaryConstructorsConstructorDescriptionChildFirstURLClassLoader(URL[] urls, ClassLoader parent) ChildFirstURLClassLoader(URL[] urls, ClassLoader parent, ClassLoader grandparent) Specify the grandparent if there is a need to load in the order of `grandparent -> urls (child) -> parent`.
- 
Method SummaryMethods inherited from class org.apache.spark.util.MutableURLClassLoaderaddURLMethods inherited from class java.net.URLClassLoaderclose, findResource, findResources, getResourceAsStream, getURLs, newInstance, newInstanceMethods inherited from class java.lang.ClassLoaderclearAssertionStatus, getDefinedPackage, getDefinedPackages, getName, getParent, getPlatformClassLoader, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
- 
Constructor Details- 
ChildFirstURLClassLoader
- 
ChildFirstURLClassLoaderSpecify the grandparent if there is a need to load in the order of `grandparent -> urls (child) -> parent`.
 
- 
- 
Method Details- 
loadClass- Throws:
- ClassNotFoundException
 
- 
getResources- Overrides:
- getResourcesin class- ClassLoader
- Throws:
- IOException
 
- 
getResource- Overrides:
- getResourcein class- ClassLoader
 
 
-