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: 1.27 $ $Date: 2004/03/02 12:31:57 $
Field Summary
protected DefaultContext
defaultContext The DefaultContext with which this Loader is associated.
protected LifecycleSupport
lifecycle The lifecycle event support for this component.
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.
Method Summary
public void
addLifecycleListener(LifecycleListener listener) Add a lifecycle event listener to this component.
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
Method Detail
addLifecycleListener
public void addLifecycleListener(LifecycleListener listener)(Code)
Add a lifecycle event listener to this component.
Parameters: listener - The listener to add
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).