DefaultScalaModule

Complete module with support for all features, with the exception of BitSetDeserializerModule.

This class aggregates all of the feature modules into a single concrete class. Its use is recommended for new users and users who want things to "just work". If more customized support is desired, consult each of the constituent traits.

See also:
Since:

1.9.0

Companion:
object
object DefaultScalaModule.type

Value members

Concrete methods

override def getModuleName: String
Definition Classes

Inherited methods

clears all the state associated with reference types

clears all the state associated with reference types

See also:
Since:

2.13.1

Inherited from:
ScalaAnnotationIntrospectorModule
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 parameters:
clazz

the class for which to remove the registered reference types

See also:
Since:

2.13.1

Inherited from:
ScalaAnnotationIntrospectorModule
def getDependencies(): Iterable[_ <: Module]
Inherited from:
Module
def getRegisteredReferencedValueType(clazz: Class[_], fieldName: String): Option[Class[_]]

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 parameters:
clazz

the (case) class

fieldName

the field name in the (case) class

Returns:

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

See also:
Since:

2.13.1

Inherited from:
ScalaAnnotationIntrospectorModule
def getTypeId(): <FromJavaObject>
Inherited from:
Module
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 parameters:
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.1

Inherited from:
ScalaAnnotationIntrospectorModule
Inherited from:
JacksonModule
override def version(): Version
Definition Classes
Inherited from:
JacksonModule