Class CacheManagerCustomizers
- java.lang.Object
- org.springframework.boot.autoconfigure.cache.CacheManagerCustomizers
public class CacheManagerCustomizers extends Object
Invokes the availableCacheManagerCustomizer
instances in the context for a givenCacheManager
.- Since:
- 1.5.0
Constructor Summary
Constructors Constructor Description CacheManagerCustomizers(List<? extends CacheManagerCustomizer<?>> customizers)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends org.springframework.cache.CacheManager>
Tcustomize(T cacheManager)
Customize the specifiedCacheManager
.
Constructor Detail
CacheManagerCustomizers
public CacheManagerCustomizers(List<? extends CacheManagerCustomizer<?>> customizers)
Method Detail
customize
public <T extends org.springframework.cache.CacheManager> T customize(T cacheManager)
Customize the specifiedCacheManager
. Locates allCacheManagerCustomizer
beans able to handle the specified instance and invokeCacheManagerCustomizer.customize(CacheManager)
on them.- Type Parameters:
T
- the type of cache manager- Parameters:
cacheManager
- the cache manager to customize- Returns:
- the cache manager