Class BroadleafThymeleaf3CacheManager
java.lang.Object
org.thymeleaf.cache.AbstractCacheManager
org.broadleafcommerce.presentation.thymeleaf3.cache.BroadleafThymeleaf3CacheManager
- All Implemented Interfaces:
org.thymeleaf.cache.ICacheManager
public class BroadleafThymeleaf3CacheManager
extends org.thymeleaf.cache.AbstractCacheManager
Implementation of
AbstractCacheManager to use BroadleafThymeleaf3ICache for templates.
This class heavily leverages StandardCacheManager functionality. Only the
initializeTemplateCache() method should behave differently by instantiating a BLCICache instead of a StandardCache.- Author:
- Chad Harchar (charchar)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.common.web.cache.BLCICacheExtensionManagerprotected org.thymeleaf.cache.StandardCacheManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.thymeleaf.cache.ICache<org.thymeleaf.cache.ExpressionCacheKey,Object> This method was changed just to use StandardCacheManager methods and should function the sameprotected org.thymeleaf.cache.ICache<org.thymeleaf.cache.TemplateCacheKey,org.thymeleaf.engine.TemplateModel> This method was changed just to return a BLCICache, instead of a StandardCacheMethods inherited from class org.thymeleaf.cache.AbstractCacheManager
clearAllCaches, getAllSpecificCacheNames, getExpressionCache, getSpecificCache, getTemplateCache
-
Field Details
-
extensionManager
protected org.broadleafcommerce.common.web.cache.BLCICacheExtensionManager extensionManager -
standardCacheManager
protected org.thymeleaf.cache.StandardCacheManager standardCacheManager
-
-
Constructor Details
-
BroadleafThymeleaf3CacheManager
public BroadleafThymeleaf3CacheManager()
-
-
Method Details
-
initializeTemplateCache
protected org.thymeleaf.cache.ICache<org.thymeleaf.cache.TemplateCacheKey,org.thymeleaf.engine.TemplateModel> initializeTemplateCache()This method was changed just to return a BLCICache, instead of a StandardCache- Specified by:
initializeTemplateCachein classorg.thymeleaf.cache.AbstractCacheManager- Returns:
-
initializeExpressionCache
protected org.thymeleaf.cache.ICache<org.thymeleaf.cache.ExpressionCacheKey,Object> initializeExpressionCache()This method was changed just to use StandardCacheManager methods and should function the same- Specified by:
initializeExpressionCachein classorg.thymeleaf.cache.AbstractCacheManager- Returns:
-