Skip to content

Move ScalaAnnotationIntrospector state to ScalaAnnotationIntrospectorModule #561

@pjfanning

Description

@pjfanning

This change is unlikely to affect many users. The RegisteredReferencedTypes support was only added in v2.13.0.

The existing ScalaAnnotationIntrospector functions will remain in all v2.13.x releases but are deprecated as of v2.13.1. They are likely to be removed in v2.14.0.

The module instance is a better place for this state and the move is needed as part of jackson-module-scala v3.

  def registerReferencedValueType(clazz: Class[_], fieldName: String, referencedType: Class[_]): Unit

  def clearRegisteredReferencedTypes(clazz: Class[_]): Unit

  def clearRegisteredReferencedTypes(): Unit

  def setDescriptorCache(cache: LookupCache[ClassKey, BeanDescriptor]): LookupCache[ClassKey, BeanDescriptor]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions