Sunday, December 10, 2006

OOP 13

What is the condition of serialized data?
BEAN/XML encoder/decoder
  1. Expose getters & setters
  2. Provide an empty default constructor
  3. Encode request will call all the getters on the DotModel and write the results to XML
  4. Decode request will create an empty DotModel, reads the XML, calls all the setters
  5. Knows about defaults in the model
  6. Don't forget about the "Dirty Bit"

Chad Salinas