public abstract class AbstractTypeResolver extends Object
Constructor and Description |
---|
AbstractTypeResolver() |
Modifier and Type | Method and Description |
---|---|
JavaType |
findTypeMapping(DeserializationConfig config,
JavaType type)
Try to locate a subtype for given abstract type, to either resolve
to a concrete type, or at least to a more-specific (and hopefully supported)
abstract type, one which may have registered deserializers.
|
JavaType |
resolveAbstractType(DeserializationConfig config,
BeanDescription typeDesc)
Method called to try to resolve an abstract type into
concrete type (usually for purposes of deserializing),
when no concrete implementation was found.
|
JavaType |
resolveAbstractType(DeserializationConfig config,
JavaType type)
Older variant of
resolveAbstractType(DeserializationConfig, BeanDescription) ;
obsoleted in 2.7, to be deprecated in 2.8 |
public JavaType findTypeMapping(DeserializationConfig config, JavaType type)
List
s).
Note that this method does not necessarily have to do full resolution of bindings; that is, it is legal to return type that could be further resolved: caller is expected to keep calling this method on registered resolvers, until a concrete type is located.
config
- Configuration in use; should always be of type
DeserializationConfig
public JavaType resolveAbstractType(DeserializationConfig config, JavaType type)
resolveAbstractType(DeserializationConfig, BeanDescription)
;
obsoleted in 2.7, to be deprecated in 2.8public JavaType resolveAbstractType(DeserializationConfig config, BeanDescription typeDesc)
Default implementation will call obsolete method for Jackson 2.7, to try to keep some level of backwards compatibility.
config
- Configuration in use; should always be of type
DeserializationConfig
typeDesc
- Description of the POJO type to resolveCopyright © 2008–2016 FasterXML. All rights reserved.