FasterXML / FasterXML/jackson3-dev

Add a general-purpose `Contextualizable` interface for all handlers to support

Đang mở
#9 1 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ả

(or, if need be, more than one)

Currently a small set of handlers can be "contextualized": that is, called with context within Object Graph, as specified by `Property` for which handler is related. This set mostly consists of serializers and deserializers.

But there are many other handlers, especially ones added via annotations, that do not get a chance to change their behavior based on context. It seems quite doable to allow use of an add-on interface like, say, `Contextualizable` that would allow (re)configuration in this way.

One interface may or may not be doable, due to:

* Difference between reading (deserialize) and writing (serialize) taking different context object (`DeserializationContext` vs `SerializerProvider`) -- although, they are both subtypes of `DatabindContext` so maybe this is not a fundamental problem.
* Are there other kinds of context beyond property-bound one? Class annotations might just take `JavaType`?

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.