Top Description Fields Constructors Methods
com.fasterxml.jackson.datatype.guava

public Class GuavaTypeModifier

extends TypeModifier
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.lang.reflect.Type, com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.type.*, com.google.common.base.Optional, com.google.common.cache.Cache, com.google.common.collect.*

We need somewhat hacky support for following Guava types:

Field Summary

Modifier and TypeField and Description
pack-priv static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public JavaType
modifyType(JavaType
Instance to modify
type
,
Type
JDK type that was used to construct instance to modify
jdkType
,
TypeBindings
Type resolution context used for the type
bindings
,
TypeFactory
Type factory that can be used to construct parameter type; note, however, that care must be taken to avoid infinite loops -- specifically, do not construct instance of primary type itself
typeFactory
)

Implements abstract com.fasterxml.jackson.databind.type.TypeModifier.modifyType.

Method called to let modifier change constructed type definition.

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Constructor Detail

GuavaTypeModifierback to summary
public GuavaTypeModifier()

Method Detail

modifyTypeback to summary
public JavaType modifyType(JavaType type, Type jdkType, TypeBindings bindings, TypeFactory typeFactory)

Implements abstract com.fasterxml.jackson.databind.type.TypeModifier.modifyType.

Doc from com.fasterxml.jackson.databind.type.TypeModifier.modifyType.

Method called to let modifier change constructed type definition. Note that this is only guaranteed to be called for non-container types ("simple" types not recognized as arrays, java.util.Collection or java.util.Map).

Parameters
type:JavaType

Instance to modify

jdkType:Type

JDK type that was used to construct instance to modify

bindings:TypeBindings

Type resolution context used for the type

typeFactory:TypeFactory

Type factory that can be used to construct parameter type; note, however, that care must be taken to avoid infinite loops -- specifically, do not construct instance of primary type itself

Returns:JavaType

Actual type instance to use; usually either type (as is or with modifications), or a newly constructed type instance based on it. Cannot be null.

Annotations
@Override