Re: [Simple-support] "serialization done" hook?
Brought to you by:
niallg
|
From: Jeffrey B. <jef...@gm...> - 2013-02-06 22:09:47
|
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...> wrote: > 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.**** > |