public abstract class DatabindContext extends Object
DeserializationContext and
 SerializerProvider, context objects passed through data-binding
 process. Designed so that some of implementations can rely on shared
 aspects like access to secondary contextual objects like type factories
 or handler instantiators.| Constructor and Description | 
|---|
DatabindContext()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canOverrideAccessModifiers()
Convenience method for accessing serialization view in use (if any); equivalent to: 
 | 
JavaType | 
constructSpecializedType(JavaType baseType,
                        Class<?> subclass)
Convenience method for constructing subtypes, retaining generic
 type parameter (if any) 
 | 
JavaType | 
constructType(Type type)
 | 
Converter<Object,Object> | 
converterInstance(Annotated annotated,
                 Object converterDef)
Helper method to use to construct a  
Converter, given a definition
 that may be either actual converter instance, or Class for instantiating one. | 
abstract Class<?> | 
getActiveView()
Accessor for locating currently active view, if any;
 returns null if no view has been set. 
 | 
abstract AnnotationIntrospector | 
getAnnotationIntrospector()
Convenience method for accessing serialization view in use (if any); equivalent to: 
 | 
abstract Object | 
getAttribute(Object key)
Method for accessing attributes available in this context. 
 | 
abstract MapperConfig<?> | 
getConfig()
Accessor to currently active configuration (both per-request configs
 and per-mapper config). 
 | 
abstract TypeFactory | 
getTypeFactory()  | 
boolean | 
isEnabled(MapperFeature feature)
Convenience method for checking whether specified serialization
 feature is enabled or not. 
 | 
ObjectIdGenerator<?> | 
objectIdGeneratorInstance(Annotated annotated,
                         ObjectIdInfo objectIdInfo)  | 
ObjectIdResolver | 
objectIdResolverInstance(Annotated annotated,
                        ObjectIdInfo objectIdInfo)  | 
abstract DatabindContext | 
setAttribute(Object key,
            Object value)
Method for setting per-call value of given attribute. 
 | 
public abstract MapperConfig<?> getConfig()
public abstract AnnotationIntrospector getAnnotationIntrospector()
getConfig().getAnnotationIntrospector();
public final boolean isEnabled(MapperFeature feature)
getConfig().isEnabled(feature);
public final boolean canOverrideAccessModifiers()
getConfig().canOverrideAccessModifiers();
public abstract Class<?> getActiveView()
public abstract Object getAttribute(Object key)
ObjectReader or ObjectWriter have lower
 precedence.key - Key of the attribute to getpublic abstract DatabindContext setAttribute(Object key, Object value)
key - Key of the attribute to setvalue - Value to set attribute topublic JavaType constructSpecializedType(JavaType baseType, Class<?> subclass)
public abstract TypeFactory getTypeFactory()
public ObjectIdGenerator<?> objectIdGeneratorInstance(Annotated annotated, ObjectIdInfo objectIdInfo) throws JsonMappingException
JsonMappingExceptionpublic ObjectIdResolver objectIdResolverInstance(Annotated annotated, ObjectIdInfo objectIdInfo)
public Converter<Object,Object> converterInstance(Annotated annotated, Object converterDef) throws JsonMappingException
Converter, given a definition
 that may be either actual converter instance, or Class for instantiating one.JsonMappingExceptionCopyright © 2014 FasterXML. All Rights Reserved.