Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » jasper » compiler » [javadoc | source]
org.apache.jasper.compiler
public final class: JspRuntimeContext [javadoc | source]
java.lang.Object
   org.apache.jasper.compiler.JspRuntimeContext
Class for tracking JSP compile time file dependencies when the &060;%@include file="..."%&062; directive is used. A background thread periodically checks the files a JSP page is dependent upon. If a dpendent file changes the JSP page which included it is recompiled. Only used if a web application context is a directory.
Constructor:
 public JspRuntimeContext(ServletContext context,
    Options options) 
    Create a JspRuntimeContext for a web application context. Loads in any previously generated dependencies from file.
    Parameters:
    context - ServletContext for web application
Method from org.apache.jasper.compiler.JspRuntimeContext Summary:
addWrapper,   checkCompile,   destroy,   getClassPath,   getCodeSource,   getJspCount,   getJspReloadCount,   getParentClassLoader,   getPermissionCollection,   getWrapper,   incrementJspReloadCount,   removeWrapper,   setJspReloadCount
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jasper.compiler.JspRuntimeContext Detail:
 public  void addWrapper(String jspUri,
    JspServletWrapper jsw) 
    Add a new JspServletWrapper.
 public  void checkCompile() 
    Method used by background thread to check the JSP dependencies registered with this class for JSP's.
 public  void destroy() 
    Process a "destory" event for this web application context.
 public String getClassPath() 
    The classpath that is passed off to the Java compiler.
 public CodeSource getCodeSource() 
    Get the SecurityManager Policy CodeSource for this web applicaiton context.
 public int getJspCount() 
    Returns the number of JSPs for which JspServletWrappers exist, i.e., the number of JSPs that have been loaded into the webapp.
 public int getJspReloadCount() 
    Gets the current value of the JSP reload counter.
 public URLClassLoader getParentClassLoader() 
    Get the parent URLClassLoader.
 public PermissionCollection getPermissionCollection() 
    Get the SecurityManager PermissionCollection for this web application context.
 public JspServletWrapper getWrapper(String jspUri) 
    Get an already existing JspServletWrapper.
 public synchronized  void incrementJspReloadCount() 
    Increments the JSP reload counter.
 public  void removeWrapper(String jspUri) 
    Remove a JspServletWrapper.
 public synchronized  void setJspReloadCount(int count) 
    Resets the JSP reload counter.