Class ChildFirstClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- org.apache.unomi.persistence.elasticsearch.ChildFirstClassLoader
-
public class ChildFirstClassLoader extends ClassLoader
This class loader will always try to load classes first from the child URL class loader and will only resort to the parent class loader if the class coudln't be found.
-
-
Constructor Summary
Constructors Constructor Description ChildFirstClassLoader(ClassLoader parent, URL[] urls)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Class<?>
loadClass(String name, boolean resolve)
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Constructor Detail
-
ChildFirstClassLoader
public ChildFirstClassLoader(ClassLoader parent, URL[] urls)
-
-
Method Detail
-
loadClass
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
-