Interface CacheProvider
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
DefaultCacheProvider
public interface CacheProvider extends java.io.Serializable
Interface that defines API Jackson uses for constructing various internal caches. This allows configuring custom caches and cache configurations. ACacheProvider
instance will be configured through a builder such asMapperBuilder.cacheProvider(CacheProvider)
- Since:
- 2.16
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LookupCache<JavaType,JsonDeserializer<java.lang.Object>>
forDeserializerCache(DeserializationConfig config)
Method for constructing aLookupCache
instance to be used byDeserializerCache
.LookupCache<TypeKey,JsonSerializer<java.lang.Object>>
forSerializerCache(SerializationConfig config)
Method for constructing aLookupCache
instance to be used bySerializerCache
.LookupCache<java.lang.Object,JavaType>
forTypeFactory()
Method for constructing aLookupCache
instance to be used byTypeFactory
.
-
-
-
Method Detail
-
forDeserializerCache
LookupCache<JavaType,JsonDeserializer<java.lang.Object>> forDeserializerCache(DeserializationConfig config)
Method for constructing aLookupCache
instance to be used byDeserializerCache
.- Returns:
LookupCache
instance for use byDeserializerCache
.
-
forSerializerCache
LookupCache<TypeKey,JsonSerializer<java.lang.Object>> forSerializerCache(SerializationConfig config)
Method for constructing aLookupCache
instance to be used bySerializerCache
.- Returns:
LookupCache
instance for constructingSerializerCache
.
-
forTypeFactory
LookupCache<java.lang.Object,JavaType> forTypeFactory()
Method for constructing aLookupCache
instance to be used byTypeFactory
.- Returns:
LookupCache
instance for constructingTypeFactory
.
-
-