FasterXML / FasterXML/java-classmate

How to build AnnotationOverrides from ObjectMapper

オープン
#81 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
266
フォーク
47
平均マージ
1時間 42分
マージ済み PR(30日)
1

説明

Hi Tatu,

In the context of my JSON Schema Generator library, I've been asked to support the mix-ins registered on a given Jackson `ObjectMapper`, when resolving members via classmate.
I saw the usage of the `AnnotationOverrides` type in classmate expecting this method to be implemented:
```java
List> mixInsFor(ClassKey);
```
Unfortunately, the `ClassKey` is a utility type, which doesn't offer a getter for the wrapped `Class`, which complicates things.

Likewise on the Jackson `ObjectMapper`, there is no way to retrieve a full set of registered mix-ins as a simple `Map`. Just this method:
```java
Class findMixInClassFor(Class)
```

Any suggestions on how to implement the `AnnotationOverrides` based on a fully configured `ObjectMapper` without requiring the same mix-ins to be provided all over again?

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

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

評価

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

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

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