Java Doc for JspRuntimeContext.java in  » Sevlet-Container » tomcat-jasper2 » org » apache » jasper » compiler » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Sevlet Container » tomcat jasper2 » org.apache.jasper.compiler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.jasper.compiler.JspRuntimeContext

JspRuntimeContext
final public class JspRuntimeContext implements Runnable(Code)
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.
author:
   Glenn L. Nielsen
version:
   $Revision: 1.23 $



Constructor Summary
public  JspRuntimeContext(ServletContext context, Options options)
     Create a JspRuntimeContext for a web application context.

Method Summary
public  voidaddWrapper(String jspUri, JspServletWrapper jsw)
     Add a new JspServletWrapper.
public  voiddestroy()
     Process a "destory" event for this web application context.
public  StringgetClassPath()
     The classpath that is passed off to the Java compiler.
public  CodeSourcegetCodeSource()
     Get the SecurityManager Policy CodeSource for this web applicaiton context.
public  intgetJspCount()
     Returns the number of JSPs for which JspServletWrappers exist, i.e., the number of JSPs that have been loaded into the webapp.
public  intgetJspReloadCount()
     Gets the current value of the JSP reload counter.
public  URLClassLoadergetParentClassLoader()
     Get the parent URLClassLoader.
public  PermissionCollectiongetPermissionCollection()
     Get the SecurityManager PermissionCollection for this web application context.
public  JspServletWrappergetWrapper(String jspUri)
     Get an already existing JspServletWrapper.
public synchronized  voidincrementJspReloadCount()
     Increments the JSP reload counter.
public  voidremoveWrapper(String jspUri)
     Remove a JspServletWrapper.
public  voidrun()
     The background thread that checks for changes to files included by a JSP and flags that a recompile is required.
public synchronized  voidsetJspReloadCount(int count)
     Resets the JSP reload counter.
protected  voidthreadSleep()
     Sleep for the duration specified by the checkInterval property.
protected  voidthreadStart()
     Start the background thread that will periodically check for changes to compile time included files in a JSP.
protected  voidthreadStop()
     Stop the background thread that is periodically checking for changes to compile time included files in a JSP.


Constructor Detail
JspRuntimeContext
public JspRuntimeContext(ServletContext context, Options options)(Code)
Create a JspRuntimeContext for a web application context. Loads in any previously generated dependencies from file.
Parameters:
  context - ServletContext for web application




Method Detail
addWrapper
public void addWrapper(String jspUri, JspServletWrapper jsw)(Code)
Add a new JspServletWrapper.
Parameters:
  jspUri - JSP URI
Parameters:
  jsw - Servlet wrapper for JSP



destroy
public void destroy()(Code)
Process a "destory" event for this web application context.



getClassPath
public String getClassPath()(Code)
The classpath that is passed off to the Java compiler.



getCodeSource
public CodeSource getCodeSource()(Code)
Get the SecurityManager Policy CodeSource for this web applicaiton context. CodeSource for JSP



getJspCount
public int getJspCount()(Code)
Returns the number of JSPs for which JspServletWrappers exist, i.e., the number of JSPs that have been loaded into the webapp. The number of JSPs that have been loaded into the webapp



getJspReloadCount
public int getJspReloadCount()(Code)
Gets the current value of the JSP reload counter. The current value of the JSP reload counter



getParentClassLoader
public URLClassLoader getParentClassLoader()(Code)
Get the parent URLClassLoader. URLClassLoader parent



getPermissionCollection
public PermissionCollection getPermissionCollection()(Code)
Get the SecurityManager PermissionCollection for this web application context. PermissionCollection permissions



getWrapper
public JspServletWrapper getWrapper(String jspUri)(Code)
Get an already existing JspServletWrapper.
Parameters:
  jspUri - JSP URI JspServletWrapper for JSP



incrementJspReloadCount
public synchronized void incrementJspReloadCount()(Code)
Increments the JSP reload counter.



removeWrapper
public void removeWrapper(String jspUri)(Code)
Remove a JspServletWrapper.
Parameters:
  jspUri - JSP URI of JspServletWrapper to remove



run
public void run()(Code)
The background thread that checks for changes to files included by a JSP and flags that a recompile is required.



setJspReloadCount
public synchronized void setJspReloadCount(int count)(Code)
Resets the JSP reload counter.
Parameters:
  count - Value to which to reset the JSP reload counter



threadSleep
protected void threadSleep()(Code)
Sleep for the duration specified by the checkInterval property.



threadStart
protected void threadStart()(Code)
Start the background thread that will periodically check for changes to compile time included files in a JSP.
exception:
  IllegalStateException - if we should not be startinga background thread now



threadStop
protected void threadStop()(Code)
Stop the background thread that is periodically checking for changes to compile time included files in a JSP.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.