marino 2004/10/04 08:00:51
Modified: src/java/org/apache/velocity/tools/view/servlet
WebappLoader.java
Log:
javadoc fixes
Revision Changes Path
1.9 +14 -3
jakarta-velocity-tools/src/java/org/apache/velocity/tools/view/servlet/WebappLoader.java
Index: WebappLoader.java
===================================================================
RCS file:
/home/cvs/jakarta-velocity-tools/src/java/org/apache/velocity/tools/view/servlet/WebappLoader.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- WebappLoader.java 4 Oct 2004 13:06:52 -0000 1.8
+++ WebappLoader.java 4 Oct 2004 15:00:51 -0000 1.9
@@ -42,6 +42,11 @@
*
* All paths must be relative to the root of the webapp.
*
+ * To enable caching and cache refreshing the webapp.resource.loader.cache and
+ * webapp.resource.loader.modificationCheckInterval properties need to be
+ * set in the velocity.properties file ... auto-reloading of global macros
+ * requires the webapp.resource.loader.cache property to be set to 'false'.
+ *
* @author <a href="mailto:[EMAIL PROTECTED]">Geir Magnusson Jr.</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Nathan Bubna</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Claude Brisson</a>
@@ -177,7 +182,10 @@
}
/**
- * Defaults to return false.
+ * Checks to see if a resource has been deleted, moved or modified.
+ *
+ * @param resource Resource The resource to check for modification
+ * @return boolean True if the resource has been modified
*/
public boolean isSourceModified(Resource resource)
{
@@ -230,7 +238,10 @@
}
/**
- * Defaults to return 0
+ * Checks to see when a resource was last modified
+ *
+ * @param resource Resource the resource to check
+ * @return long The time when the resource was last modified or 0 if the file
can't be read
*/
public long getLastModified(Resource resource)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]