Package | Description |
---|---|
com.fasterxml.jackson.databind.module |
Package that contains classes and interfaces to help implement
custom extension
Module s
(which are registered using
ObjectMapper.registerModule(com.fasterxml.jackson.databind.Module) . |
Modifier and Type | Method and Description |
---|---|
<T> SimpleModule |
SimpleModule.addAbstractTypeMapping(Class<T> superType,
Class<? extends T> subType)
Lazily-constructed resolver used for storing mappings from
abstract classes to more specific implementing classes
(which may be abstract or concrete)
|
<T> SimpleModule |
SimpleModule.addDeserializer(Class<T> type,
JsonDeserializer<? extends T> deser)
Method for adding deserializer to handle specified type.
|
SimpleModule |
SimpleModule.addKeyDeserializer(Class<?> type,
KeyDeserializer deser) |
<T> SimpleModule |
SimpleModule.addKeySerializer(Class<? extends T> type,
JsonSerializer<T> ser) |
<T> SimpleModule |
SimpleModule.addSerializer(Class<? extends T> type,
JsonSerializer<T> ser)
Method for adding serializer to handle values of specific type.
|
SimpleModule |
SimpleModule.addSerializer(JsonSerializer<?> ser)
Method for adding serializer to handle type that the serializer claims to handle
(see
JsonSerializer.handledType() ). |
SimpleModule |
SimpleModule.addValueInstantiator(Class<?> beanType,
ValueInstantiator inst)
Method for registering
ValueInstantiator to use when deserializing
instances of type beanType . |
SimpleModule |
SimpleModule.registerSubtypes(Class<?>... subtypes)
Method for adding set of subtypes to be registered with
ObjectMapper
this is an alternative to using annotations in super type to indicate subtypes. |
SimpleModule |
SimpleModule.registerSubtypes(Collection<Class<?>> subtypes)
Method for adding set of subtypes (along with type name to use) to be registered with
ObjectMapper
this is an alternative to using annotations in super type to indicate subtypes. |
SimpleModule |
SimpleModule.registerSubtypes(NamedType... subtypes)
Method for adding set of subtypes (along with type name to use) to be registered with
ObjectMapper
this is an alternative to using annotations in super type to indicate subtypes. |
SimpleModule |
SimpleModule.setDeserializerModifier(BeanDeserializerModifier mod) |
SimpleModule |
SimpleModule.setMixInAnnotation(Class<?> targetType,
Class<?> mixinClass)
Method for specifying that annotations define by
mixinClass
should be "mixed in" with annotations that targetType
has (as if they were directly included on it!). |
protected SimpleModule |
SimpleModule.setNamingStrategy(PropertyNamingStrategy naming) |
SimpleModule |
SimpleModule.setSerializerModifier(BeanSerializerModifier mod) |
Copyright © 2008–2019 FasterXML. All rights reserved.