vgritsenko 2002/10/22 20:12:07
Modified: src/java/org/apache/cocoon/caching Tag: cocoon_2_0_3_branch
CacheValidity.java
Log:
Document required toString() method
Revision Changes Path
No revision
No revision
1.5.2.1 +12 -2
xml-cocoon2/src/java/org/apache/cocoon/caching/CacheValidity.java
Index: CacheValidity.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/caching/CacheValidity.java,v
retrieving revision 1.5
retrieving revision 1.5.2.1
diff -u -r1.5 -r1.5.2.1
--- CacheValidity.java 22 Feb 2002 07:03:49 -0000 1.5
+++ CacheValidity.java 23 Oct 2002 03:12:07 -0000 1.5.2.1
@@ -50,6 +50,8 @@
*/
package org.apache.cocoon.caching;
+import java.io.Serializable;
+
/**
* A CacheValidity object contains all information for one pipeline component
* to check if it is still valid.<br>
@@ -59,7 +61,7 @@
* @author <a href="mailto:cziegeler@;apache.org">Carsten Ziegeler</a>
* @version CVS $Id$
*/
-public interface CacheValidity extends java.io.Serializable {
+public interface CacheValidity extends Serializable {
/**
* Check if the component is still valid.
@@ -67,4 +69,12 @@
* type and has the same values.
*/
boolean isValid(CacheValidity validity);
+
+ /**
+ * Creates text represenation of the validity object.
+ * This is used to create fake 'lastModificationDate' for cocoon: sources.
+ * <p>Due to changes in source API, this method is no longer needed,
+ * starting with Cocoon 2.1.
+ */
+ String toString();
}
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]