|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader java.security.SecureClassLoader java.net.URLClassLoader org.apache.jasper.servlet.JasperLoader
public class JasperLoader
Class loader for loading servlet class files (corresponding to JSP files) and tag handler class files (corresponding to tag files).
Constructor Summary | |
---|---|
JasperLoader(URL[] urls,
ClassLoader parent,
PermissionCollection permissionCollection)
|
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. |
Methods inherited from class java.net.URLClassLoader |
---|
addURL, definePackage, findClass, findResource, findResources, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
---|
defineClass, defineClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JasperLoader(URL[] urls, ClassLoader parent, PermissionCollection permissionCollection)
Method Detail |
---|
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass(String, boolean)
with false
as the second argument.
loadClass
in class ClassLoader
name
- Name of the class to be loaded
ClassNotFoundException
- if the class was not foundpublic Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
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.
loadClass
in class ClassLoader
name
- Name of the class to be loadedresolve
- If true
then resolve the class
ClassNotFoundException
- if the class was not foundpublic InputStream getResourceAsStream(String name)
getResourceAsStream
in class ClassLoader
ClassLoader.getResourceAsStream(java.lang.String)
public final PermissionCollection getPermissions(CodeSource codeSource)
getPermissions
in class URLClassLoader
codeSource
- Code source where the code was loaded from
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |