View | Details | Raw Unified | Return to bug 52173
Collapse All | Expand All

(-)java/org/apache/catalina/loader/WebappClassLoader.java (-3 / +14 lines)
Lines 86-99 Link Here
86
 * compatible with a normal <code>URLClassLoader</code>, although its internal
86
 * compatible with a normal <code>URLClassLoader</code>, although its internal
87
 * behavior may be completely different.
87
 * behavior may be completely different.
88
 * <p>
88
 * <p>
89
 * <strong>IMPLEMENTATION NOTE</strong> - This class loader faithfully follows
89
 * <strong>IMPLEMENTATION NOTE</strong> - By default, this class loader faithfully follows
90
 * the delegation model recommended in the specification. The system class
90
 * the delegation model recommended in the specification. The system class
91
 * loader will be queried first, then the local repositories, and only then
91
 * loader will be queried first, then the local repositories, and only then
92
 * delegation to the parent class loader will occur. This allows the web
92
 * delegation to the parent class loader will occur. This allows the web
93
 * application to override any shared class except the classes from J2SE.
93
 * application to override any shared class except the classes from J2SE.
94
 * Special handling is provided from the JAXP XML parser interfaces, the JNDI
94
 * Special handling is provided from the JAXP XML parser interfaces, the JNDI
95
 * interfaces, and the classes from the servlet API, which are never loaded
95
 * interfaces, and the classes from the servlet API, which are never loaded
96
 * from the webapp repository.
96
 * from the webapp repository. The <code>delegate</code> property
97
 * allows an application to modify this behavior move the parent class loader
98
 * ahead of the local repository.
97
 * <p>
99
 * <p>
98
 * <strong>IMPLEMENTATION NOTE</strong> - Due to limitations in Jasper
100
 * <strong>IMPLEMENTATION NOTE</strong> - Due to limitations in Jasper
99
 * compilation technology, any repository which contains classes from
101
 * compilation technology, any repository which contains classes from
Lines 292-298 Link Here
292
     * usual Java2 delegation model)?  If set to <code>false</code>,
294
     * usual Java2 delegation model)?  If set to <code>false</code>,
293
     * this class loader will search its own repositories first, and
295
     * this class loader will search its own repositories first, and
294
     * delegate to the parent only if the class or resource is not
296
     * delegate to the parent only if the class or resource is not
295
     * found locally.
297
     * found locally. Note that the default, <code>false</code>, is 
298
     * the behavior called for by the servlet specification.
296
     */
299
     */
297
    protected boolean delegate = false;
300
    protected boolean delegate = false;
298
301
Lines 536-541 Link Here
536
539
537
    /**
540
    /**
538
     * Set the "delegate first" flag for this class loader.
541
     * Set the "delegate first" flag for this class loader.
542
     * If this flag is true, this class loader delegates
543
     * to the parent class loader
544
     * <strong>before</strong> searching its own repositories, as
545
     * in an ordinary (non-servlet) chain of of Java class loaders.
546
     * If set to <code>false</code>,
547
     * this class loader will search its own repositories first, and
548
     * delegate to the parent only if the class or resource is not
549
     * found locally, as per the servlet specification. 
539
     *
550
     *
540
     * @param delegate The new "delegate first" flag
551
     * @param delegate The new "delegate first" flag
541
     */
552
     */

Return to bug 52173