FasterXML / FasterXML/jackson3-dev

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

Aperta
#28 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Nessun dato sulla lingua
Stelle
6
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.