Top Description Methods
com.fasterxml.jackson.databind.cfg

public Interface CacheProvider

extends Serializable
Known Direct Implementers
com.fasterxml.jackson.databind.cfg.DefaultCacheProvider
Imports
com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.deser.DeserializerCache, com.fasterxml.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 com.fasterxml.jackson.databind.json.JsonMapper.Builder#cacheProvider(CacheProvider)
Since
2.16

Method Summary

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

Returns:

LookupCache instance for use by DeserializerCache.
forDeserializerCache
(DeserializationConfig config)

Method for constructing a LookupCache instance to be used by DeserializerCache.

public LookupCache<TypeKey, JsonSerializer<Object>>
public LookupCache<Object, JavaType>
forTypeFactory()

Method for constructing a LookupCache instance to be used by com.fasterxml.jackson.databind.type.TypeFactory.

Method Detail

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

Method for constructing a LookupCache instance to be used by DeserializerCache.

Returns:LookupCache<JavaType, JsonDeserializer<Object>>

LookupCache instance for use by DeserializerCache.

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

Method for constructing a LookupCache instance to be used by com.fasterxml.jackson.databind.ser.SerializerCache.

Returns:LookupCache<TypeKey, JsonSerializer<Object>>

LookupCache instance for constructing com.fasterxml.jackson.databind.ser.SerializerCache.

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

Method for constructing a LookupCache instance to be used by com.fasterxml.jackson.databind.type.TypeFactory.

Returns:LookupCache<Object, JavaType>

LookupCache instance for constructing com.fasterxml.jackson.databind.type.TypeFactory.