Home » apache-tomcat-6.0.26-src » org.apache » jasper » servlet » [javadoc | source]
public class: JasperLoader [javadoc | source]
Class loader for loading servlet class files (corresponding to JSP files) and tag handler class files (corresponding to tag files).
Fields inherited from java.net.URLClassLoader:
Fields inherited from java.lang.ClassLoader:
nocerts,  classAssertionStatus
 public JasperLoader(URL[] urls,
    ClassLoader parent,
    PermissionCollection permissionCollection,
    CodeSource codeSource) 
Method from org.apache.jasper.servlet.JasperLoader Summary:
getPermissions,   getResourceAsStream,   loadClass,   loadClass
Methods from java.net.URLClassLoader:
access$000,   access$100,   addURL,   definePackage,   findClass,   findResource,   findResources,   getPermissions,   getURLs,   newInstance,   newInstance
Methods from java.security.SecureClassLoader:
defineClass,   defineClass,   getPermissions
Methods from java.lang.ClassLoader:
access$000,   access$100,   addClass,   clearAssertionStatus,   defineClass,   defineClass,   defineClass,   defineClass,   definePackage,   desiredAssertionStatus,   findClass,   findLibrary,   findLoadedClass,   findNative,   findResource,   findResources,   findSystemClass,   getBootstrapClassPath,   getCallerClassLoader,   getPackage,   getPackages,   getParent,   getResource,   getResourceAsStream,   getResources,   getSystemClassLoader,   getSystemResource,   getSystemResourceAsStream,   getSystemResources,   isAncestor,   loadClass,   loadClass,   loadLibrary,   resolveClass,   setClassAssertionStatus,   setDefaultAssertionStatus,   setPackageAssertionStatus,   setSigners
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jasper.servlet.JasperLoader Detail:
 public final PermissionCollection getPermissions(CodeSource codeSource) 
    Get the Permissions for a CodeSource. Since this ClassLoader is only used for a JSP page in a web application context, we just return our preset PermissionCollection for the web app context.
 public InputStream getResourceAsStream(String name) 
    Delegate to parent
 public Class loadClass(String name) throws ClassNotFoundException 
    Load the class with the specified name. This method searches for classes in the same manner as loadClass(String, boolean) with false as the second argument.
 public Class loadClass(String name,
    boolean resolve) throws ClassNotFoundException 
    Load the class with the specified name, searching using the following algorithm until it finds and returns the class. If the class cannot be found, returns ClassNotFoundException.
    • Call findLoadedClass(String) to check if the class has already been loaded. If it has, the same Class object is returned.
    • If the delegate property is set to true, call the loadClass() method of the parent class loader, if any.
    • Call findClass() to find this class in our locally defined repositories.
    • Call the loadClass() method of our parent class loader, if any.
    If the class was found using the above steps, and the resolve flag is true, this method will then call resolveClass(Class) on the resulting Class object.