sivarajankumar / rocket-gwt

Automatically exported from code.google.com/p/rocket-gwt
0 stars 0 forks source link

Refactor Json serialization classes so they share a common interface and factory as the java serialization. #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The goal is that all code uses the same Reader and Writer interfaces to
serialize a instance to json and vice versa. Annotations would still be
used to map json properties <-> java fields.

The only code that would be different is the initial method which will
prolly still use deferred binding to return a SerializationFactory
instance. From the SF users can create a Reader or Writer as per their needs.

Both forms of serialization ultimately serialize objects into a string,
there fore the result of a Writer can be accomodated by a common interface.
The same is also true of a Reader which takes a serialized form of an
object stream and returns Objects in reverse to a Writer.

JsonSerializers instances which currently serialize and deserialize to and
from json would need to be refactored to match the new interface definition
of rocket.serialization.Serialization module.

Original issue reported on code.google.com by miroslav...@gmail.com on 29 Jan 2008 at 9:56