Re: [Simple-support] "serialization done" hook?
Brought to you by:
niallg
|
From: Niall G. - Y. <Nia...@yi...> - 2013-02-06 21:59:16
|
Try the @Complete annotation, methods with this are called after an object has deserialized From: Jeffrey Blattman [mailto:jef...@gm...] Sent: Thursday, 7 February 2013 5:17 AM To: sim...@li... Subject: [Simple-support] "serialization done" hook? i want to execute some code when deserialization is finished. is there a way to do this? more about my problem ... i need to copy some data that's in one XML element into another, with the result in the deserialized object. i'm sort of fudging the resulting deserialized object. for example, <foo x="1"> <bar/> </foo> i have object Foo and Bar, and i want to insert the value for "x" to end up in one of Bar's fields. thanks. |