Class ChildFirstURLClassLoader
java.lang.Object
java.lang.ClassLoader
de.iip_ecosphere.platform.support.plugins.ChildFirstClassLoader
de.iip_ecosphere.platform.support.plugins.ChildFirstURLClassLoader
- All Implemented Interfaces:
IdentifyingClassloader
A delegating child-first classloader.
- Author:
- Stackoverflow, Holger Eichelberger, SSE
-
Constructor Summary
ConstructorsConstructorDescriptionChildFirstURLClassLoader(URL[] urls) Creates a child-first classloader using the context class loader of the current thread as parent.ChildFirstURLClassLoader(URL[] urls, ClassLoader parent) Creates a child-first classloader. -
Method Summary
Methods inherited from class de.iip_ecosphere.platform.support.plugins.ChildFirstClassLoader
amI, clearAssertionStatus, getResource, getResourceAsStream, getResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, toStringMethods inherited from class java.lang.ClassLoader
defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setSigners
-
Constructor Details
-
ChildFirstURLClassLoader
Creates a child-first classloader using the context class loader of the current thread as parent.- Parameters:
urls- the URLs to load classes from
-
ChildFirstURLClassLoader
Creates a child-first classloader.- Parameters:
urls- the URLs to load classes fromparent- the parent class loader
-