Jackson + Builder Pattern?

前端 未结 6 1804
春和景丽
春和景丽 2020-11-28 20:23

I\'d like Jackson to deserialize a class with the following constructor:

public Clinic(String name, Address address)

Deserializing the firs

6条回答
  •  隐瞒了意图╮
    2020-11-28 20:44

    There is no support currently for builder pattern, although it has been requested quite a while ago (and finally Jira issue http://jira.codehaus.org/browse/JACKSON-469 was filed) -- it is something that may be added for 1.8 release if there is enough demand (make sure to vote at Jira!). It is a reasonable additional feature, and only delayed by amount of time developers have. But I think it would be great addition.

提交回复
热议问题