This class loader is a full reimplementation of the URLClassLoader
from the JDK. It is desinged to be fully compatible with a normal URLClassLoader
, although its internal behavior may be completely different.
IMPLEMENTATION NOTE - This class loader faithfully follows the delegation model recommended in the specification. The system class loader will be queried first, then the local repositories, and only then delegation to the parent class loader will occur. This allows the web application to override any shared class except the classes from J2SE. Special handling is provided from the JAXP XML parser interfaces, the JNDI interfaces, and the classes from the servlet API, which are never loaded from the webapp repository.
IMPLEMENTATION NOTE - Due to limitations in Jasper compilation technology, any repository which contains classes from the servlet API will be ignored by the class loader.
IMPLEMENTATION NOTE - The class loader generates source URLs which include the full JAR URL when a class is loaded from a JAR file, which allows setting security permission at the class level, even when a class is contained inside a JAR.
IMPLEMENTATION NOTE - Local repositories are searched in the order they are added via the initial constructor and/or any subsequent calls to addRepository()
or addJar()
.
IMPLEMENTATION NOTE - No check for sealing violations or security is made unless a security manager is present. @author Remy Maucherat @author Craig R. McClanahan @version $Revision: 1384 $ $Date: 2010-02-10 07:44:59 -0500 (Wed, 10 Feb 2010) $
|
|
|
|
|
|
|
|
|
|
|
|