Search in sources :

Example 1 with MaskingClassLoader

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;
}
Also used : MaskingClassLoader(hudson.util.MaskingClassLoader) AntClassLoader(org.apache.tools.ant.AntClassLoader) URLClassLoader(java.net.URLClassLoader) MaskingClassLoader(hudson.util.MaskingClassLoader)

Aggregations

MaskingClassLoader (hudson.util.MaskingClassLoader)1 URLClassLoader (java.net.URLClassLoader)1 AntClassLoader (org.apache.tools.ant.AntClassLoader)1