ScalaAnnotationIntrospector

object ScalaAnnotationIntrospector extends NopAnnotationIntrospector with ValueInstantiators
trait ValueInstantiators
class NopAnnotationIntrospector
class AnnotationIntrospector
trait Serializable
trait Versioned
class Object
trait Matchable
class Any

Value members

Concrete methods

override def findCreatorAnnotation(config: MapperConfig[_], a: Annotated): Mode
Definition Classes
AnnotationIntrospector
override def findCreatorBinding(a: Annotated): Mode
Definition Classes
AnnotationIntrospector
override def findImplicitPropertyName(member: AnnotatedMember): String
Definition Classes
AnnotationIntrospector
override def findValueInstantiator(config: DeserializationConfig, beanDesc: BeanDescription, defaultInstantiator: ValueInstantiator): ValueInstantiator
Definition Classes
ValueInstantiators
override def hasCreatorAnnotation(a: Annotated): Boolean
Definition Classes
AnnotationIntrospector
override def hasIgnoreMarker(m: AnnotatedMember): Boolean
Definition Classes
AnnotationIntrospector
def propertyFor(a: Annotated): Option[PropertyDescriptor]

Deprecated methods

@deprecated("use ScalaAnnotationIntrospectorModule.clearRegisteredReferencedTypes instead", "2.13.1")
def clearRegisteredReferencedTypes(clazz: Class[_]): Unit

clears the state associated with reference types for the given class

clears the state associated with reference types for the given class

Value Params
clazz

the class for which to remove the registered reference types

See also
Since

2.13.0

Deprecated

will be removed 2.14.0 in favour of the ScalaAnnotationIntrospectorModule version

@deprecated("use ScalaAnnotationIntrospectorModule.clearRegisteredReferencedTypes instead", "2.13.1")

clears all the state associated with reference types

clears all the state associated with reference types

See also
Since

2.13.0

Deprecated

will be removed 2.14.0 in favour of the ScalaAnnotationIntrospectorModule version

@deprecated("use ScalaAnnotationIntrospectorModule.registerReferencedValueType instead", "2.13.1")
def registerReferencedValueType(clazz: Class[_], fieldName: String, referencedType: Class[_]): Unit

jackson-module-scala does not always properly handle deserialization of Options or Collections wrapping Scala primitives (eg Int, Long, Boolean).

jackson-module-scala does not always properly handle deserialization of Options or Collections wrapping Scala primitives (eg Int, Long, Boolean).

This function is experimental and may be removed or significantly reworked in a later release.

These issues can be worked around by adding Jackson annotations on the affected fields. This function is designed to be used when it is not possible to apply Jackson annotations.

Value Params
clazz

the (case) class

fieldName

the field name in the (case) class

referencedType

the referenced type of the field - for Option[Long] - the referenced type is Long

See also
Since

2.13.0

Deprecated

will be removed 2.14.0 in favour of the ScalaAnnotationIntrospectorModule version

@deprecated("use ScalaAnnotationIntrospectorModule.setDescriptorCache instead", "2.13.1")
def setDescriptorCache(cache: LookupCache[ClassKey, BeanDescriptor]): LookupCache[ClassKey, BeanDescriptor]

overrides the built-in descriptor cache (which has size 100)

overrides the built-in descriptor cache (which has size 100)

See also
Since

2.13.0

Deprecated

will be removed 2.14.0 in favour of the ScalaAnnotationIntrospectorModule version

Inherited methods

def allIntrospectors(x$0: Collection[AnnotationIntrospector]): Collection[AnnotationIntrospector]
Inherited from
AnnotationIntrospector
def allIntrospectors(): Collection[AnnotationIntrospector]
Inherited from
AnnotationIntrospector
def findAndAddVirtualProperties(x$0: MapperConfig[_ <: <FromJavaObject>], x$1: AnnotatedClass, x$2: List[BeanPropertyWriter]): Unit
Inherited from
AnnotationIntrospector
def findAutoDetectVisibility(x$0: AnnotatedClass, x$1: VisibilityChecker[_ <: <FromJavaObject>]): VisibilityChecker[_ <: <FromJavaObject>]
Inherited from
AnnotationIntrospector
def findClassDescription(x$0: AnnotatedClass): String
Inherited from
AnnotationIntrospector
def findContentDeserializer(x$0: Annotated): <FromJavaObject>
Inherited from
AnnotationIntrospector
def findContentSerializer(x$0: Annotated): <FromJavaObject>
Inherited from
AnnotationIntrospector
def findDefaultEnumValue(x$0: Class[Enum[_ <: <FromJavaObject>]]): Enum[_ <: <FromJavaObject>]
Inherited from
AnnotationIntrospector
def findDeserializationContentConverter(x$0: AnnotatedMember): <FromJavaObject>
Inherited from
AnnotationIntrospector
def findDeserializationConverter(x$0: Annotated): <FromJavaObject>
Inherited from
AnnotationIntrospector
def findDeserializer(x$0: Annotated): <FromJavaObject>
Inherited from
AnnotationIntrospector
def findEnumAliases(x$0: Class[_ <: <FromJavaObject>], x$1: Array[Enum[_ <: <FromJavaObject>]], x$2: Array[Array[String]]): Unit
Inherited from
AnnotationIntrospector
def findEnumValues(x$0: Class[_ <: <FromJavaObject>], x$1: Array[Enum[_ <: <FromJavaObject>]], x$2: Array[String]): Array[String]
Inherited from
AnnotationIntrospector
def findFilterId(x$0: Annotated): <FromJavaObject>
Inherited from
AnnotationIntrospector
def findFormat(x$0: Annotated): Value
Inherited from
AnnotationIntrospector
def findInjectableValue(x$0: AnnotatedMember): Value
Inherited from
AnnotationIntrospector
def findKeyDeserializer(x$0: Annotated): <FromJavaObject>
Inherited from
AnnotationIntrospector
def findKeySerializer(x$0: Annotated): <FromJavaObject>
Inherited from
AnnotationIntrospector
def findMergeInfo(x$0: Annotated): Boolean
Inherited from
AnnotationIntrospector
def findNameForDeserialization(x$0: Annotated): PropertyName
Inherited from
AnnotationIntrospector
def findNameForSerialization(x$0: Annotated): PropertyName
Inherited from
AnnotationIntrospector
def findNamingStrategy(x$0: AnnotatedClass): <FromJavaObject>
Inherited from
AnnotationIntrospector
def findNullSerializer(x$0: Annotated): <FromJavaObject>
Inherited from
AnnotationIntrospector
def findObjectIdInfo(x$0: Annotated): ObjectIdInfo
Inherited from
AnnotationIntrospector
def findObjectReferenceInfo(x$0: Annotated, x$1: ObjectIdInfo): ObjectIdInfo
Inherited from
AnnotationIntrospector
def findPOJOBuilder(x$0: AnnotatedClass): Class[_ <: <FromJavaObject>]
Inherited from
AnnotationIntrospector
def findPOJOBuilderConfig(x$0: AnnotatedClass): Value
Inherited from
AnnotationIntrospector
def findPropertyAccess(x$0: Annotated): Access
Inherited from
AnnotationIntrospector
def findPropertyAliases(x$0: Annotated): List[PropertyName]
Inherited from
AnnotationIntrospector
def findPropertyContentTypeResolver(x$0: MapperConfig[_ <: <FromJavaObject>], x$1: AnnotatedMember, x$2: JavaType): TypeResolverBuilder[_ <: <FromJavaObject>]
Inherited from
AnnotationIntrospector
def findPropertyDefaultValue(x$0: Annotated): String
Inherited from
AnnotationIntrospector
def findPropertyDescription(x$0: Annotated): String
Inherited from
AnnotationIntrospector
def findPropertyIgnoralByName(x$0: MapperConfig[_ <: <FromJavaObject>], x$1: Annotated): Value
Inherited from
AnnotationIntrospector
def findPropertyInclusion(x$0: Annotated): Value
Inherited from
AnnotationIntrospector
def findPropertyInclusionByName(x$0: MapperConfig[_ <: <FromJavaObject>], x$1: Annotated): Value
Inherited from
AnnotationIntrospector
def findPropertyIndex(x$0: Annotated): Integer
Inherited from
AnnotationIntrospector
def findPropertyTypeResolver(x$0: MapperConfig[_ <: <FromJavaObject>], x$1: AnnotatedMember, x$2: JavaType): TypeResolverBuilder[_ <: <FromJavaObject>]
Inherited from
AnnotationIntrospector
def findReferenceType(x$0: AnnotatedMember): ReferenceProperty
Inherited from
AnnotationIntrospector
def findRenameByField(x$0: MapperConfig[_ <: <FromJavaObject>], x$1: AnnotatedField, x$2: PropertyName): PropertyName
Inherited from
AnnotationIntrospector
def findRootName(x$0: AnnotatedClass): PropertyName
Inherited from
AnnotationIntrospector
def findSerializationContentConverter(x$0: AnnotatedMember): <FromJavaObject>
Inherited from
AnnotationIntrospector
def findSerializationConverter(x$0: Annotated): <FromJavaObject>
Inherited from
AnnotationIntrospector
def findSerializationPropertyOrder(x$0: AnnotatedClass): Array[String]
Inherited from
AnnotationIntrospector
def findSerializationSortAlphabetically(x$0: Annotated): Boolean
Inherited from
AnnotationIntrospector
def findSerializationTyping(x$0: Annotated): Typing
Inherited from
AnnotationIntrospector
def findSerializer(x$0: Annotated): <FromJavaObject>
Inherited from
AnnotationIntrospector
def findSetterInfo(x$0: Annotated): Value
Inherited from
AnnotationIntrospector
def findSubtypes(x$0: Annotated): List[NamedType]
Inherited from
AnnotationIntrospector
def findTypeName(x$0: AnnotatedClass): String
Inherited from
AnnotationIntrospector
def findTypeResolver(x$0: MapperConfig[_ <: <FromJavaObject>], x$1: AnnotatedClass, x$2: JavaType): TypeResolverBuilder[_ <: <FromJavaObject>]
Inherited from
AnnotationIntrospector
def findUnwrappingNameTransformer(x$0: AnnotatedMember): NameTransformer
Inherited from
AnnotationIntrospector
def findValueInstantiator(x$0: AnnotatedClass): <FromJavaObject>
Inherited from
AnnotationIntrospector
def findViews(x$0: Annotated): Array[Class[_ <: <FromJavaObject>]]
Inherited from
AnnotationIntrospector
def findWrapperName(x$0: Annotated): PropertyName
Inherited from
AnnotationIntrospector
def hasAnyGetter(x$0: Annotated): Boolean
Inherited from
AnnotationIntrospector
def hasAnySetter(x$0: Annotated): Boolean
Inherited from
AnnotationIntrospector
def hasAsKey(x$0: MapperConfig[_ <: <FromJavaObject>], x$1: Annotated): Boolean
Inherited from
AnnotationIntrospector
def hasAsValue(x$0: Annotated): Boolean
Inherited from
AnnotationIntrospector
def hasRequiredMarker(x$0: AnnotatedMember): Boolean
Inherited from
AnnotationIntrospector
def isAnnotationBundle(x$0: Annotation): Boolean
Inherited from
AnnotationIntrospector
def isIgnorableType(x$0: AnnotatedClass): Boolean
Inherited from
AnnotationIntrospector
def isTypeId(x$0: AnnotatedMember): Boolean
Inherited from
AnnotationIntrospector
@throws(com.fasterxml.jackson.databind.JsonMappingException)
def refineDeserializationType(x$0: MapperConfig[_ <: <FromJavaObject>], x$1: Annotated, x$2: JavaType): JavaType
Inherited from
AnnotationIntrospector
@throws(com.fasterxml.jackson.databind.JsonMappingException)
def refineSerializationType(x$0: MapperConfig[_ <: <FromJavaObject>], x$1: Annotated, x$2: JavaType): JavaType
Inherited from
AnnotationIntrospector
def resolveSetterConflict(x$0: MapperConfig[_ <: <FromJavaObject>], x$1: AnnotatedMethod, x$2: AnnotatedMethod): AnnotatedMethod
Inherited from
AnnotationIntrospector
def version(): Version
Inherited from
NopAnnotationIntrospector

Deprecated and Inherited methods

@Deprecated @deprecated("see corresponding Javadoc for more information.", "")
def findDeserializationContentType(x$0: Annotated, x$1: JavaType): Class[_ <: <FromJavaObject>]
Deprecated
Inherited from
AnnotationIntrospector
@Deprecated @deprecated("see corresponding Javadoc for more information.", "")
def findDeserializationKeyType(x$0: Annotated, x$1: JavaType): Class[_ <: <FromJavaObject>]
Deprecated
Inherited from
AnnotationIntrospector
@Deprecated @deprecated("see corresponding Javadoc for more information.", "")
def findDeserializationType(x$0: Annotated, x$1: JavaType): Class[_ <: <FromJavaObject>]
Deprecated
Inherited from
AnnotationIntrospector
@Deprecated @deprecated("see corresponding Javadoc for more information.", "")
def findEnumValue(x$0: Enum[_ <: <FromJavaObject>]): String
Deprecated
Inherited from
AnnotationIntrospector
@Deprecated @deprecated("see corresponding Javadoc for more information.", "")
def findIgnoreUnknownProperties(x$0: AnnotatedClass): Boolean
Deprecated
Inherited from
AnnotationIntrospector
@Deprecated @deprecated("see corresponding Javadoc for more information.", "")
def findInjectableValueId(x$0: AnnotatedMember): <FromJavaObject>
Deprecated
Inherited from
AnnotationIntrospector
@Deprecated @deprecated("see corresponding Javadoc for more information.", "")
def findPropertiesToIgnore(x$0: Annotated, x$1: Boolean): Array[String]
Deprecated
Inherited from
AnnotationIntrospector
@Deprecated @deprecated("see corresponding Javadoc for more information.", "")
def findPropertyIgnorals(x$0: Annotated): Value
Deprecated
Inherited from
AnnotationIntrospector
@Deprecated @deprecated("see corresponding Javadoc for more information.", "")
def findSerializationContentType(x$0: Annotated, x$1: JavaType): Class[_ <: <FromJavaObject>]
Deprecated
Inherited from
AnnotationIntrospector
@Deprecated @deprecated("see corresponding Javadoc for more information.", "")
def findSerializationInclusion(x$0: Annotated, x$1: Include): Include
Deprecated
Inherited from
AnnotationIntrospector
@Deprecated @deprecated("see corresponding Javadoc for more information.", "")
def findSerializationInclusionForContent(x$0: Annotated, x$1: Include): Include
Deprecated
Inherited from
AnnotationIntrospector
@Deprecated @deprecated("see corresponding Javadoc for more information.", "")
def findSerializationKeyType(x$0: Annotated, x$1: JavaType): Class[_ <: <FromJavaObject>]
Deprecated
Inherited from
AnnotationIntrospector
@Deprecated @deprecated("see corresponding Javadoc for more information.", "")
def findSerializationType(x$0: Annotated): Class[_ <: <FromJavaObject>]
Deprecated
Inherited from
AnnotationIntrospector
@Deprecated @deprecated("see corresponding Javadoc for more information.", "")
def hasAnyGetterAnnotation(x$0: AnnotatedMethod): Boolean
Deprecated
Inherited from
AnnotationIntrospector
@Deprecated @deprecated("see corresponding Javadoc for more information.", "")
def hasAnySetterAnnotation(x$0: AnnotatedMethod): Boolean
Deprecated
Inherited from
AnnotationIntrospector
@Deprecated @deprecated("see corresponding Javadoc for more information.", "")
def hasAsValueAnnotation(x$0: AnnotatedMethod): Boolean
Deprecated
Inherited from
AnnotationIntrospector