public void clearAllCaches() { final ICache<TemplateCacheKey, TemplateModel> templateCacheObj = getTemplateCache(); if (templateCacheObj != null) { templateCacheObj.clear(); } final ICache<ExpressionCacheKey, Object> expressionCacheObj = getExpressionCache(); if (expressionCacheObj != null) { expressionCacheObj.clear(); } final List<String> allSpecificCacheNamesObj = getAllSpecificCacheNames(); if (allSpecificCacheNamesObj != null) { for (final String specificCacheName : allSpecificCacheNamesObj) { final ICache<?,?> specificCache = getSpecificCache(specificCacheName); if (specificCache != null) { specificCache.clear(); } } } }
public final ICache<ExpressionCacheKey, Object> getExpressionCache() { if (!this.expressionCacheInitialized) { synchronized(this) { if (!this.expressionCacheInitialized) { this.expressionCache = initializeExpressionCache(); this.expressionCacheInitialized = true; } } } return this.expressionCache; }
public final ICache<TemplateCacheKey, TemplateModel> getTemplateCache() { if (!this.templateCacheInitialized) { synchronized(this) { if (!this.templateCacheInitialized) { this.templateCache = initializeTemplateCache(); this.templateCacheInitialized = true; } } } return this.templateCache; }
public void clearAllCaches() { final ICache<String, Template> templateCacheObj = getTemplateCache(); if (templateCacheObj != null) { templateCacheObj.clear(); final ICache<String, List<Node>> fragmentCacheObj = getFragmentCache(); if (fragmentCacheObj != null) { fragmentCacheObj.clear(); final ICache<String, Properties> messageCacheObj = getMessageCache(); if (messageCacheObj != null) { messageCacheObj.clear(); final ICache<String, Object> expressionCacheObj = getExpressionCache(); if (expressionCacheObj != null) { expressionCacheObj.clear(); final List<String> allSpecificCacheNamesObj = getAllSpecificCacheNames(); if (allSpecificCacheNamesObj != null) { for (final String specificCacheName : allSpecificCacheNamesObj) { final ICache<?,?> specificCache = getSpecificCache(specificCacheName); if (specificCache != null) { specificCache.clear();
public final ICache<String, Properties> getMessageCache() { if (!this.messageCacheInitialized) { synchronized(this) { if (!this.messageCacheInitialized) { this.messageCache = initializeMessageCache(); this.messageCacheInitialized = true; } } } return this.messageCache; }
public final ICache<String, List<Node>> getFragmentCache() { if (!this.fragmentCacheInitialized) { synchronized(this) { if (!this.fragmentCacheInitialized) { this.fragmentCache = initializeFragmentCache(); this.fragmentCacheInitialized = true; } } } return this.fragmentCache; }
public final ICache<String, Template> getTemplateCache() { if (!this.templateCacheInitialized) { synchronized(this) { if (!this.templateCacheInitialized) { this.templateCache = initializeTemplateCache(); this.templateCacheInitialized = true; } } } return this.templateCache; }
public final ICache<String, Object> getExpressionCache() { if (!this.expressionCacheInitialized) { synchronized(this) { if (!this.expressionCacheInitialized) { this.expressionCache = initializeExpressionCache(); this.expressionCacheInitialized = true; } } } return this.expressionCache; }