CVS: Tapestry/framework/src/net/sf/tapestry/record DefaultValuePersister.java,1.1.2.1,1.1.2.2

Howard Lewis Ship <[email protected]>
Newsgroups gmane.comp.java.tapestry.cvs
Message-ID <[email protected]>
Update of /cvsroot/tapestry/Tapestry/framework/src/net/sf/tapestry/record
In directory sc8-pr-cvs1:/tmp/cvs-serv10025/framework/src/net/sf/tapestry/record

Modified Files:
      Tag: hship-2-3
	DefaultValuePersister.java 
Log Message:
Identify Enum as an immutable persistant property type.

Index: DefaultValuePersister.java
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/framework/src/net/sf/tapestry/record/Attic/DefaultValuePersister.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** DefaultValuePersister.java	30 Dec 2002 03:04:55 -0000	1.1.2.1
--- DefaultValuePersister.java	31 Dec 2002 12:22:58 -0000	1.1.2.2
***************
*** 8,11 ****
--- 8,13 ----
  import javax.ejb.Handle;
  
+ import org.apache.commons.lang.enum.Enum;
+ 
  import net.sf.tapestry.ApplicationRuntimeException;
  import net.sf.tapestry.Tapestry;
***************
*** 63,66 ****
--- 65,69 ----
       *  instance is registered for
       *  {@link net.sf.tapestry.util.IImmutable},
+      *  {@link Enum},
       *  String, Character, Number, Boolean and Date (even though Date is, technically, mutable)
       * 
***************
*** 88,91 ****
--- 91,95 ----
          registerValueCopier(Date.class, immutable);
          registerValueCopier(Handle.class, immutable);
+         registerValueCopier(Enum.class, immutable);
  
          registerValueCopier(List.class, new ListCopier());



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.