Interface CacheProvider
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultCacheProvider
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
MapperBuilder.cacheProvider(CacheProvider)
- Since:
- 2.16
-
Method Summary
Modifier and TypeMethodDescriptionMethod for constructing aLookupCache
instance to be used byDeserializerCache
.Method for constructing aLookupCache
instance to be used bySerializerCache
.Method for constructing aLookupCache
instance to be used byTypeFactory
.
-
Method Details
-
forDeserializerCache
Method for constructing aLookupCache
instance to be used byDeserializerCache
.- Returns:
LookupCache
instance for use byDeserializerCache
.
-
forSerializerCache
Method for constructing aLookupCache
instance to be used bySerializerCache
.- Returns:
LookupCache
instance for constructingSerializerCache
.
-
forTypeFactory
LookupCache<Object,JavaType> forTypeFactory()Method for constructing aLookupCache
instance to be used byTypeFactory
.- Returns:
LookupCache
instance for constructingTypeFactory
.
-