Classloader implementation which is specialized for handling web
applications in the most efficient way, while being Catalina aware (all
accesses to resources are made through the DirContext interface).
This class loader supports detection of modified
Java classes, which can be used to implement auto-reload support.
This class loader is configured by adding the pathnames of directories,
JAR files, and ZIP files with the addRepository() method,
prior to calling start(). When a new class is required,
these repositories will be consulted first to locate the class. If it
is not present, the system class loader will be used instead.
author: Craig R. McClanahan author: Remy Maucherat version: $Revision: 505593 $ $Date: 2007-02-10 01:54:56 +0100 (sam., 10 févr. 2007) $
support The property change support for this component.
Constructor Summary
public
WebappLoader() Construct a new WebappLoader with no defined parent class loader
(so that the actual parent will be the system class loader).
public
WebappLoader(ClassLoader parent) Construct a new WebappLoader with the specified class loader
to be defined as the parent of the ClassLoader we ultimately create.
Construct a new WebappLoader with the specified class loader
to be defined as the parent of the ClassLoader we ultimately create.
Parameters: parent - The parent class loader
Execute a periodic task, such as reloading, etc. This method will be
invoked inside the classloading context of this container. Unexpected
throwables will be caught and logged.
Return the set of repositories defined for this class loader.
If none are defined, a zero-length array is returned.
For security reason, returns a clone of the Array (since
String are immutable).