Class WebAppClassLoader

All Implemented Interfaces:
Closeable, AutoCloseable, ClassVisibilityChecker

@Deprecated(since="12.0.0", forRemoval=true) public class WebAppClassLoader extends WebAppClassLoader
Deprecated, for removal: This API element is subject to removal in a future version.
use the core WebAppClassLoader directly instead.
ClassLoader for HttpContext.

Specializes URLClassLoader with some utility and file mapping methods.

This loader implements the Servlet specification behavior that may invert the normal Java classloader parent priority behaviour. The ClassVisibilityChecker API of the WebAppClassLoader.Context implementation is used to determine which classes from the parent classloader are hidden from the context, and which are protected from being overridden by the context.

Java compliant loading, where the parent loader always has priority, can be selected with the WebAppContext.setParentLoaderPriority(boolean) method.