jon 00/11/27 14:44:19
Modified: src/java/org/apache/velocity Context.java
Log:
implement serializable so that one can put a Context object
into a HttpSession and expect it to survive classloader reloads
Revision Changes Path
1.7 +3 -2 jakarta-velocity/src/java/org/apache/velocity/Context.java
Index: Context.java
===================================================================
RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/Context.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Context.java 2000/11/02 22:32:24 1.6
+++ Context.java 2000/11/27 22:44:15 1.7
@@ -55,6 +55,7 @@
*/
import java.util.Hashtable;
+import java.io.Serializable;
import org.apache.velocity.util.ArrayIterator;
@@ -66,9 +67,9 @@
* an valid object derived from Object. These objects
* are stored in a Hashtable.
* @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
- * @version $Id: Context.java,v 1.6 2000/11/02 22:32:24 jvanzyl Exp $
+ * @version $Id: Context.java,v 1.7 2000/11/27 22:44:15 jon Exp $
*/
-public class Context implements Cloneable
+public class Context implements Cloneable, Serializable
{
/**
* Random access storage for context data.