org.apache.jasper.servlet
クラス JasperLoader

java.lang.Object
  |
  +--java.lang.ClassLoader
        |
        +--java.security.SecureClassLoader
              |
              +--java.net.URLClassLoader
                    |
                    +--org.apache.jasper.servlet.JasperLoader

public class JasperLoader
extends java.net.URLClassLoader

This is a class loader that loads JSP files as though they were Java classes. It calls the compiler to compile the JSP file into a servlet and then loads the generated class.

作成者:
Anil K. Vijendran, Harish Prabandham

内部クラスの概要
protected  class JasperLoader.PrivilegedLoadClass
           
 
メソッドの概要
protected  java.security.PermissionCollection getPermissions(java.security.CodeSource codeSource)
          Get the Permissions for a CodeSource.
 java.lang.Class loadClass(java.lang.String name)
          Load the class with the specified name.
 java.lang.Class loadClass(java.lang.String name, boolean resolve)
          Load the class with the specified name, searching using the following algorithm until it finds and returns the class.
protected  byte[] loadClassDataFromFile(java.lang.String fileName)
          Load JSP class data from file.
 
クラス java.net.URLClassLoader から継承したメソッド
addURL, definePackage, findClass, findResource, findResources, getURLs, newInstance, newInstance
 
クラス java.security.SecureClassLoader から継承したメソッド
defineClass
 
クラス java.lang.ClassLoader から継承したメソッド
defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, resolveClass, setSigners
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

loadClass

public java.lang.Class loadClass(java.lang.String name)
                          throws java.lang.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.
オーバーライド:
クラス java.lang.ClassLoader 内の loadClass
パラメータ:
name - Name of the class to be loaded
例外:
java.lang.ClassNotFoundException - if the class was not found

loadClass

public java.lang.Class loadClass(java.lang.String name,
                                 boolean resolve)
                          throws java.lang.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. 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.
オーバーライド:
クラス java.lang.ClassLoader 内の loadClass
パラメータ:
name - Name of the class to be loaded
resolve - If true then resolve the class
例外:
java.lang.ClassNotFoundException - if the class was not found

getPermissions

protected final java.security.PermissionCollection getPermissions(java.security.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.
オーバーライド:
クラス java.net.URLClassLoader 内の getPermissions
パラメータ:
CodeSource - where the code was loaded from
戻り値:
PermissionCollection for CodeSource

loadClassDataFromFile

protected byte[] loadClassDataFromFile(java.lang.String fileName)
Load JSP class data from file.


Copyright ? 2000 Apache Software Foundation. All Rights Reserved.