My favorites | Sign in
Project Home Downloads Issues Source
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 432: Enhance support for InstanceCreator
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----

Sign in to add a comment
Reported by, Apr 7, 2012
It would be great if gson supported the notion a global InstanceCreator, one which is delegated to for the construction of all types. API could be something along the lines of:


This would allow easier delegation to Guice, Spring, etc., for the construction of all objects to be populated by gson as opposed to registering one InstanceCreator per type, as is currently required.

Alternatively, the registerTypeHierarchyAdapter method could be enhanced to support instance creators, such that a "global" InstanceCreator could effectively be registered as one that creates instances of base type Object.class.
Apr 11, 2012
Project Member #1 limpbizkit
(No comment was entered for this change.)
Labels: -Type-Defect Type-Enhancement
Sign in to add a comment

Powered by Google Project Hosting