Package | Description |
---|---|
org.codehaus.jackson.map |
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser
Object mapper will convert Json content to ant from
basic Java wrapper types (Integer, Boolean, Double),
Collection types (List, Map), Java Beans,
Strings and nulls. |
org.codehaus.jackson.map.jsontype.impl |
Package that contains standard implementations for
TypeResolverBuilder
and
TypeIdResolver . |
org.codehaus.jackson.map.type |
Package that contains concrete implementations of
JavaType , as
well as the factory (TypeFactory ) for
constructing instances from various input data types
(like Class , Type )
and programmatically (for structured types, arrays,
List s and Map s). |
Modifier and Type | Field and Description |
---|---|
protected TypeFactory |
ObjectMapper._typeFactory
Specific factory used for creating
JavaType instances;
needed to allow modules to add more custom type handling
(mostly to support types of non-Java JVM languages) |
protected TypeFactory |
MapperConfig.Base._typeFactory
Specific factory used for creating
JavaType instances;
needed to allow modules to add more custom type handling
(mostly to support types of non-Java JVM languages) |
Modifier and Type | Method and Description |
---|---|
TypeFactory |
ObjectMapper.getTypeFactory()
Accessor for getting currently configured
TypeFactory instance. |
TypeFactory |
MapperConfig.getTypeFactory() |
TypeFactory |
MapperConfig.Base.getTypeFactory() |
TypeFactory |
DeserializationContext.getTypeFactory() |
Modifier and Type | Method and Description |
---|---|
ObjectMapper |
ObjectMapper.setTypeFactory(TypeFactory f)
Method that can be used to override
TypeFactory instance
used by this mapper. |
SerializationConfig |
SerializationConfig.withTypeFactory(TypeFactory tf) |
DeserializationConfig |
DeserializationConfig.withTypeFactory(TypeFactory tf) |
abstract T |
MapperConfig.withTypeFactory(TypeFactory typeFactory)
Method for constructing and returning a new instance with different
TypeFactory
to use. |
MapperConfig.Base |
MapperConfig.Base.withTypeFactory(TypeFactory tf) |
Modifier and Type | Field and Description |
---|---|
protected TypeFactory |
TypeIdResolverBase._typeFactory |
Constructor and Description |
---|
ClassNameIdResolver(JavaType baseType,
TypeFactory typeFactory) |
MinimalClassNameIdResolver(JavaType baseType,
TypeFactory typeFactory) |
TypeIdResolverBase(JavaType baseType,
TypeFactory typeFactory) |
Modifier and Type | Field and Description |
---|---|
protected TypeFactory |
TypeBindings._typeFactory
Factory to use for constructing resolved related types.
|
static TypeFactory |
TypeFactory.instance
Deprecated.
As of 1.8, should use a per-ObjectMapper instance instead
of global singleton
|
Modifier and Type | Method and Description |
---|---|
static TypeFactory |
TypeFactory.defaultInstance()
Method used to access the globally shared instance, which has
no custom configuration.
|
TypeFactory |
TypeFactory.withModifier(TypeModifier mod) |
Modifier and Type | Method and Description |
---|---|
abstract JavaType |
TypeModifier.modifyType(JavaType type,
java.lang.reflect.Type jdkType,
TypeBindings context,
TypeFactory typeFactory)
Method called to let modifier change constructed type definition.
|
Constructor and Description |
---|
TypeBindings(TypeFactory typeFactory,
java.lang.Class<?> cc) |
TypeBindings(TypeFactory typeFactory,
JavaType type) |
TypeParser(TypeFactory f) |