< prev index next >
src/jdk.xml.bind/share/classes/com/sun/istack/internal/tools/ParallelWorldClassLoader.java
Print this page
*** 55,67 ****
* +- X.class
* +- bar
* +- X.class
* </pre>
* <p>
! * {@link ParallelWorldClassLoader}("foo/") would load <tt>X.class<tt> from
! * <tt>/foo/X.class</tt> (note that X is defined in the root package, not
! * <tt>foo.X</tt>.
*
* <p>
* This can be combined with {@link MaskingClassLoader} to mask classes which are loaded by the parent
* class loader so that the child class loader
* classes living in different folders are loaded
--- 55,67 ----
* +- X.class
* +- bar
* +- X.class
* </pre>
* <p>
! * {@link ParallelWorldClassLoader}("foo/") would load {@code X.class} from
! * {@code /foo/X.class} (note that X is defined in the root package, not
! * {@code foo.X}.
*
* <p>
* This can be combined with {@link MaskingClassLoader} to mask classes which are loaded by the parent
* class loader so that the child class loader
* classes living in different folders are loaded
*** 75,89 ****
* +- bar
* +-foo
* +- X.class
* </pre>
* <p>
! * {@link ParallelWorldClassLoader}(MaskingClassLoader.class.getClassLoader()) would load <tt>foo.X.class<tt> from
! * <tt>/bar/foo.X.class</tt> not the <tt>foo.X.class<tt> in the publicly visible place in the jar file, thus
! * masking the parent classLoader from loading the class from <tt>foo.X.class<tt>
* (note that X is defined in the package foo, not
! * <tt>bar.foo.X</tt>.
*
* @author Kohsuke Kawaguchi
*/
public class ParallelWorldClassLoader extends ClassLoader implements Closeable {
--- 75,91 ----
* +- bar
* +-foo
* +- X.class
* </pre>
* <p>
! * {@link ParallelWorldClassLoader}(MaskingClassLoader.class.getClassLoader())
! * would load {@code foo.X.class} from
! * {@code /bar/foo.X.class} not the {@code foo.X.class}
! * in the publicly visible place in the jar file, thus
! * masking the parent classLoader from loading the class from {@code foo.X.class}
* (note that X is defined in the package foo, not
! * {@code bar.foo.X}.
*
* @author Kohsuke Kawaguchi
*/
public class ParallelWorldClassLoader extends ClassLoader implements Closeable {
< prev index next >