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 aLookupCacheinstance to be used byDeserializerCache.Method for constructing aLookupCacheinstance to be used bySerializerCache.Method for constructing aLookupCacheinstance to be used byTypeFactory.
-
Method Details
-
forDeserializerCache
Method for constructing aLookupCacheinstance to be used byDeserializerCache.- Returns:
LookupCacheinstance for use byDeserializerCache.
-
forSerializerCache
Method for constructing aLookupCacheinstance to be used bySerializerCache.- Returns:
LookupCacheinstance for constructingSerializerCache.
-
forTypeFactory
LookupCache<Object,JavaType> forTypeFactory()Method for constructing aLookupCacheinstance to be used byTypeFactory.- Returns:
LookupCacheinstance for constructingTypeFactory.
-