use of hudson.util.MaskingClassLoader in project hudson-2.x by hudson.
the class ClassicPluginStrategy method getBaseClassLoader.
/**
* Computes the classloader that takes the class masking into account.
*
* <p>
* This mechanism allows plugins to have their own verions for libraries that core bundles.
*/
private ClassLoader getBaseClassLoader(Attributes atts) {
ClassLoader base = getClass().getClassLoader();
String masked = atts.getValue("Mask-Classes");
if (masked != null)
base = new MaskingClassLoader(base, masked.trim().split("[ \t\r\n]+"));
return base;
}
Aggregations