|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jackson.map.AbstractTypeResolver
public abstract class AbstractTypeResolver
Defines interface for resolvers that can resolve abstract types into concrete ones; either by using static mappings, or possibly by materializing implementations dynamically.
Note that this class was changed in 1.8, to separate two parts of operation (defaulting, which has higher precedence, and fallback, which has lowest precedence). Existing m
Constructor Summary | |
---|---|
AbstractTypeResolver()
|
Method Summary | |
---|---|
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,
JavaType type)
Method called to try to resolve an abstract type into concrete type (usually for purposes of deserializing), when no concrete implementation was found. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTypeResolver()
Method Detail |
---|
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)
config
- Configuration in use; should always be of type
DeserializationConfig
type
- Type for which materialization maybe needed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |