open class ResourceOverridingShadowingClassLoader : ShadowingClassLoader
Subclass of ShadowingClassLoader that overrides attempts to locate certain files.
Author
Rod Johnson
Author
Adrian Colyer
Since
2.0
ResourceOverridingShadowingClassLoader(enclosingClassLoader: ClassLoader)
Create a new ResourceOverridingShadowingClassLoader, decorating the given ClassLoader. |
static val DEFAULT_EXCLUDED_PACKAGES: Array<String>
Packages that are excluded by default |
open fun copyOverrides(other: ResourceOverridingShadowingClassLoader): Unit
Copy all overrides from the given ClassLoader. |
|
open fun getResource(requestedPath: String): URL |
|
open fun getResourceAsStream(requestedPath: String): InputStream |
|
open fun getResources(requestedPath: String): Enumeration<URL> |
|
open fun override(oldPath: String, newPath: String): Unit
Return the resource (if any) at the new path on an attempt to locate a resource at the old path. |
|
open fun suppress(oldPath: String): Unit
Ensure that a resource with the given path is not found. |
open fun addTransformer(transformer: ClassFileTransformer): Unit
Add the given ClassFileTransformer to the list of transformers that this ClassLoader will apply. |
|
open fun copyTransformers(other: ShadowingClassLoader): Unit
Copy all ClassFileTransformers from the given ClassLoader to the list of transformers that this ClassLoader will apply. |
|
open fun loadClass(name: String): Class<*> |