org.mortbay.jetty.webapp.WebAppContext#setParentLoaderPriority(boolean)
method and influenced with WebAppContext#isServerClass(String) and
WebAppContext#isSystemClass(String).
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.
| Modifier and Type | Field and Description |
|---|---|
| private WebAppContext | |
| private String | |
| private ClassLoader |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addClassPath(String
Comma or semicolon separated path of filenames or URLs
pointing to directories or jar files. Directories should end
with '/'. classPath)
|
| public void | |
| public void | |
| public ContextHandler | |
| public String | Returns: the name of the classloaderOverrides java. null if
this class loader is not named.
|
| public PermissionCollection | getPermissions(CodeSource
the codesource cs)Overrides java. |
| public synchronized URL | getResource(String
The resource name name)Overrides java. |
| public synchronized Class | loadClass(String
The binary name of the class name)Overrides java. |
| protected synchronized Class | loadClass(String
The binary name of the class name, boolean If resolve)true then resolve the classOverrides java. |
| public void | |
| public String |
| _context | back to summary |
|---|---|
| private WebAppContext _context | |
| _name | back to summary |
|---|---|
| private String _name | |
| _parent | back to summary |
|---|---|
| private ClassLoader _parent | |
| WebAppClassLoader | back to summary |
|---|---|
| public WebAppClassLoader(WebAppContext context) throws IOException Constructor. | |
| WebAppClassLoader | back to summary |
|---|---|
| public WebAppClassLoader(ClassLoader parent, WebAppContext context) throws IOException Constructor. | |
| addClassPath | back to summary |
|---|---|
public void addClassPath(String classPath) throws IOException
| |
| addJars | back to summary |
|---|---|
| public void addJars(Resource lib) Add elements to the class path for the context from the jar and zip files found in the specified resource.
| |
| destroy | back to summary |
|---|---|
| public void destroy() | |
| getContext | back to summary |
|---|---|
| public ContextHandler getContext() | |
| getName | back to summary |
|---|---|
| public String getName() Overrides java. Doc from java. Returns the name of this class loader or
| |
| getPermissions | back to summary |
|---|---|
| public PermissionCollection getPermissions(CodeSource cs) Overrides java. Doc from java. Returns the permissions for the given codesource object. The implementation of this method first calls super.getPermissions and then adds permissions based on the URL of the codesource. If the protocol of this URL is "jar", then the permission granted is based on the permission that is required by the URL of the Jar file. If the protocol is "file" and there is an authority component, then permission to connect to and accept connections from that authority may be granted. If the protocol is "file" and the path specifies a file, then permission to read that file is granted. If protocol is "file" and the path is a directory, permission is granted to read all files and (recursively) all files and subdirectories contained in that directory. If the protocol is not "file", then permission to connect to and accept connections from the URL's host is granted.
| |
| getResource | back to summary |
|---|---|
| public synchronized URL getResource(String name) Overrides java. Doc from java. Finds the resource with the given name. A resource is some data (images, audio, text, etc) that can be accessed by class code in a way that is independent of the location of the code. The name of a resource is a ' Resources in named modules are subject to the encapsulation rules
specified by
| |
| loadClass | back to summary |
|---|---|
| public synchronized Class Overrides java. Doc from java. Loads the class with the specified binary name.
This method searches for classes in the same manner as the
| |
| loadClass | back to summary |
|---|---|
| protected synchronized Class Overrides java. Doc from java. Loads the class with the specified binary name. The default implementation of this method searches for classes in the following order:
If the class was found using the above steps, and the
Subclasses of Unless overridden, this method synchronizes on the result of
| |
| setName | back to summary |
|---|---|
public void setName(String name)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |