|Issue 432:||Enhance support for InstanceCreator|
|1 person starred this issue and may be notified of changes.||Back to list|
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: GsonBuilder.registerInstanceCreator(InstanceCreator) 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
(No comment was entered for this change.)
Labels: -Type-Defect Type-Enhancement
|► Sign in to add a comment|