FasterXML / FasterXML/jackson3-dev

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

オープン
#9 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
言語のデータがありません
スター
6
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

(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`?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。