public class CompositeClassloader extends ClassLoader
When resolving classes, the parent classloader is consulted first, and if that classloader cannot find the class, the alternate/second classloader is asked to resolve the class.
Constructor and Description |
---|
CompositeClassloader(ClassLoader parent,
ClassLoader fallback)
Creates a composite classloader.
|
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
findClass(String name) |
protected URL |
findResource(String name) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public CompositeClassloader(ClassLoader parent, ClassLoader fallback)
parent
- the parent classloaderfallback
- the alternate classloaderprotected Class<?> findClass(String name) throws ClassNotFoundException
findClass
in class ClassLoader
ClassNotFoundException
protected URL findResource(String name)
findResource
in class ClassLoader
Copyright © 2019 TIBCO Software Inc.. All rights reserved.