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

    Fields
    Modifier and Type
    Field
    Description
    protected org.broadleafcommerce.common.web.cache.BLCICacheExtensionManager
     
    protected org.thymeleaf.cache.StandardCacheManager
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.thymeleaf.cache.ICache<org.thymeleaf.cache.ExpressionCacheKey,Object>
    This method was changed just to use StandardCacheManager methods and should function the same
    protected org.thymeleaf.cache.ICache<org.thymeleaf.cache.TemplateCacheKey,org.thymeleaf.engine.TemplateModel>
    This method was changed just to return a BLCICache, instead of a StandardCache

    Methods inherited from class org.thymeleaf.cache.AbstractCacheManager

    clearAllCaches, getAllSpecificCacheNames, getExpressionCache, getSpecificCache, getTemplateCache

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      initializeTemplateCache in class org.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:
      initializeExpressionCache in class org.thymeleaf.cache.AbstractCacheManager
      Returns: