What's XMT

Version 8 by Robin Shen
on Feb 18, 2010 05:00.


compared with
Current by Robin Shen
on Feb 18, 2010 05:05.


 
Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 1 changes. View first change.

  [XStream|http://xstream.codehaus.org/] is a popular tool to serialize Java objects to XML and back again. However in a production environment, user needs to deal with migration of serialized XML if fields of associated Java classes have been changed. XMT (XStream Migration Tool) makes this task much easier with the help of [dom4j|http://dom4j.sourceforge.net/]: when you change fields of the class, you just provide a migration method in your class to handle migration of dom4j document (DOM representation of serialized XML) from previous version to current version, and XMT will take care of the rest.
  XStream is a popular tool to serialize Java objects to XML and back again. However in a production environment, user needs to deal with migration of serialized XML if fields of associated Java classes have been changed. XMT (XStream Migration Tool) makes this task much easier with the help of Java reflection and dom4j: when you change fields of the class, you just provide a migration method in your class to handle migration of dom4j document (DOM representation of serialized XML) from previous version to current version, and XMT will take care of the rest.