This code is used to create an isolated environment. @author Kohsuke Kawaguchi
234235236237238239240241242243244
mask.add("javax.xml.ws."); } // first create a protected area so that we load JAXB/WS 2.1 API // and everything that depends on them inside cl = new MaskingClassLoader(cl,mask); // then this classloader loads the API and tools.jar cl = new URLClassLoader(urls, cl); // finally load the rest of the RI. The actual class files are loaded from ancestors
255256257258259260261262
* This mechanism allows plugins to have their own versions for libraries that core bundles. */ private ClassLoader getBaseClassLoader(Attributes atts, ClassLoader base) { String masked = atts.getValue("Mask-Classes"); if(masked!=null) base = new MaskingClassLoader(base, masked.trim().split("[ \t\r\n]+")); return base; }
249250251252253254255256
*/ 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; }