org.apache.jasper.servlet
public class JasperLoader extends URLClassLoader
Constructor Summary | |
---|---|
JasperLoader(URL[] urls, ClassLoader parent, PermissionCollection permissionCollection, CodeSource codeSource) |
Method Summary | |
---|---|
PermissionCollection | getPermissions(CodeSource codeSource)
Get the Permissions for a CodeSource.
|
InputStream | getResourceAsStream(String name)
Delegate to parent
|
Class | loadClass(String name)
Load the class with the specified name. |
Class | loadClass(String name, boolean resolve)
Load the class with the specified name, searching using the following
algorithm until it finds and returns the class. |
Parameters: codeSource Code source where the code was loaded from
Returns: PermissionCollection for CodeSource
See Also: java.lang.ClassLoader#getResourceAsStream(java.lang.String)
loadClass(String, boolean)
with false
as the second argument.
Parameters: name Name of the class to be loaded
Throws: ClassNotFoundException if the class was not found
ClassNotFoundException
.
findLoadedClass(String)
to check if the
class has already been loaded. If it has, the same
Class
object is returned.delegate
property is set to true
,
call the loadClass()
method of the parent class
loader, if any.findClass()
to find this class in our locally
defined repositories.loadClass()
method of our parent
class loader, if any.resolve
flag is true
, this method will then
call resolveClass(Class)
on the resulting Class object.
Parameters: name Name of the class to be loaded resolve If true
then resolve the class
Throws: ClassNotFoundException if the class was not found