Closed almondtools closed 6 years ago
We can implement this by giving each Serializer
an additional method dependentObjects()
which return all non-trivial objects the object to be serialized depends on.
generate(Type, SerializerSession)
method)populate(SerializedValue, Object, SerializerSession)
on each pair (SerializedValue,Object)
SerializerFacade.serialize
SerializerFacade
completely.This algorithm will not suffer from the problems with forward
Currently the object tree is traversed in a recursive way for serialization. This could lead to stack overflow exceptions if the tree is too deep.
It would be more robust to traverse the object tree in a non recursive breadth first strategy.