FasterXML / FasterXML/jackson3-dev

Add new method(s) in serializer/deserializer factory for accessing only "POJO" (de)serializer

Đang mở
#28 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
6
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Although lookups by general Java type (Collection(-like), Map(-like), array, Enum, reference type, "other") works well for registering custom (de)serializers, there is one set of functionality where it is not sufficient: that of "shape-changing".

For example, when serializing `Enum` values "as POJOs" (by inspecting properties), lookup is needed ONLY for POJO serializer (`BeanSerializer`), and not for Enum type. But currently there is no way to explicitly specify desire for such (de)serializer. This requires clumsy work-arounds on factories, lack of extensibility. With 3.x we can add new methods to overcome this problem.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.