Package hudson.util
Class MaskingClassLoader
java.lang.Object
java.lang.ClassLoader
hudson.util.MaskingClassLoader
ClassLoader
that masks a specified set of classes
from its parent class loader.
This code is used to create an isolated environment.
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
ConstructorDescriptionMaskingClassLoader
(ClassLoader parent, String... masks) MaskingClassLoader
(ClassLoader parent, Collection<String> masks) -
Method Summary
Modifier and TypeMethodDescriptiongetResource
(String name) getResources
(String name) protected Class<?>
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, getResourceAsStream, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
MaskingClassLoader
-
MaskingClassLoader
-
-
Method Details
-
loadClass
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
getResource
- Overrides:
getResource
in classClassLoader
-
getResources
- Overrides:
getResources
in classClassLoader
- Throws:
IOException
-