Top Description Methods
tools.jackson.databind.cfg

public Interface CacheProvider

extends Serializable
Known Direct Implementers
tools.jackson.databind.cfg.DefaultCacheProvider
Imports
tools.jackson.databind.*, tools.jackson.databind.deser.DeserializerCache, tools.jackson.databind.util.LookupCache, .TypeKey

Interface that defines API Jackson uses for constructing various internal caches. This allows configuring custom caches and cache configurations. A CacheProvider instance will be configured through a builder such as tools.jackson.databind.json.JsonMapper.Builder#cacheProvider(CacheProvider)

Method Summary

Modifier and TypeMethod and Description
public LookupCache<JavaType, ValueDeserializer<Object>>

Returns:

LookupCache instance for constructing DeserializerCache.
forDeserializerCache
(DeserializationConfig config)

Method to provide a LookupCache instance for constructing DeserializerCache.

public LookupCache<TypeKey, ValueSerializer<Object>>
public LookupCache<Object, JavaType>

Returns:

LookupCache instance for constructing tools.jackson.databind.type.TypeFactory.
forTypeFactory
()

Method to provide a LookupCache instance for constructing tools.jackson.databind.type.TypeFactory.

Method Detail

forDeserializerCacheback to summary
public LookupCache<JavaType, ValueDeserializer<Object>> forDeserializerCache(DeserializationConfig config)

Method to provide a LookupCache instance for constructing DeserializerCache.

Returns:LookupCache<JavaType, ValueDeserializer<Object>>

LookupCache instance for constructing DeserializerCache.

forSerializerCacheback to summary
public LookupCache<TypeKey, ValueSerializer<Object>> forSerializerCache(SerializationConfig config)

Method to provide a LookupCache instance for constructing tools.jackson.databind.ser.SerializerCache.

Returns:LookupCache<TypeKey, ValueSerializer<Object>>

LookupCache instance for constructing tools.jackson.databind.ser.SerializerCache.

forTypeFactoryback to summary
public LookupCache<Object, JavaType> forTypeFactory()

Method to provide a LookupCache instance for constructing tools.jackson.databind.type.TypeFactory.

Returns:LookupCache<Object, JavaType>

LookupCache instance for constructing tools.jackson.databind.type.TypeFactory.