Re: [Simple-support] "serialization done" hook?
Brought to you by:
niallg
|
From: Niall G. - Y. <Nia...@yi...> - 2013-02-06 22:13:51
|
Sorry, @Commit is what you should use. @Complete is called when you have finished writing, @Commit is called when you finish reading. From: Jeffrey Blattman [mailto:jef...@gm...] Sent: Thursday, 7 February 2013 9:10 AM Cc: sim...@li... Subject: Re: [Simple-support] "serialization done" hook? thanks. it's not clear is @Commit or @Complete is the right choice. the javadocs are very similar. On Wed, Feb 6, 2013 at 1:59 PM, Niall Gallagher - Yieldbroker <Nia...@yi...<mailto:Nia...@yi...>> wrote: Try the @Complete annotation, methods with this are called after an object has deserialized From: Jeffrey Blattman [mailto:jef...@gm...<mailto:jef...@gm...>] Sent: Thursday, 7 February 2013 5:17 AM To: sim...@li...<mailto: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. |