Closed GoogleCodeExporter closed 9 years ago
Seems like there is a general need for a hook for invocation after create. How
about if we create a @PostCreate
annotation that you apply to a method. Gson will invoke this method after
deserializing an object. Will that work
for your use-case?
Original comment by inder123
on 18 Aug 2009 at 5:48
Yes, provided it can throw a JsonParseException or otherwise indicate that the
object is unsuitable (eg. required
fields are missing).
Original comment by ian.clarke
on 18 Aug 2009 at 5:50
We could not settle on a design of PostCreate so deferring it to a future
release.
Original comment by inder123
on 29 Sep 2009 at 5:56
Original comment by inder123
on 1 Nov 2010 at 10:33
Original comment by inder123
on 3 Nov 2010 at 12:28
This is essentially a subset of the features requested in issue 315.
Original comment by joel.leitch@gmail.com
on 19 Apr 2011 at 9:52
Original issue reported on code.google.com by
ian.clarke
on 7 Aug 2009 at 11:16