| java.net.URLClassLoader org.mortbay.jetty.webapp.WebAppClassLoader
WebAppClassLoader | public class WebAppClassLoader extends URLClassLoader implements Cloneable(Code) | | ClassLoader for HttpContext.
Specializes URLClassLoader with some utility and file mapping
methods.
This loader defaults to the 2.3 servlet spec behaviour where non
system classes are loaded from the classpath in preference to the
parent loader. Java2 compliant loading, where the parent loader
always has priority, can be selected with the
org.mortbay.jetty.webapp.WebAppContext.setParentLoaderPriority(boolean) method.
If no parent class loader is provided, then the current thread context classloader will
be used. If that is null then the classloader that loaded this class is used as the parent.
author: Greg Wilkins (gregw) |
addClassPath | public void addClassPath(String classPath) throws IOException(Code) | | Parameters: classPath - Comma or semicolon separated path of filenames or URLspointing to directories or jar files. Directories should endwith '/'. |
addJars | public void addJars(Resource lib)(Code) | | Add elements to the class path for the context from the jar and zip files found
in the specified resource.
Parameters: lib - the resource that contains the jar and/or zip files. Parameters: append - true if the classpath entries are to be appended to anyexisting classpath, or false if they replace the existing classpath. See Also: WebAppClassLoader.setClassPath(String) |
destroy | public void destroy()(Code) | | |
|
|