/** * Removes all entries from the cache, forcing reloading of templates * on subsequent {@link #getTemplate(String, Locale, String, boolean)} * calls. If the configured template loader is * {@link StatefulTemplateLoader stateful}, then its * {@link StatefulTemplateLoader#resetState()} method is invoked as well. */ public void clear() { synchronized (storage) { storage.clear(); if (templateLoader instanceof StatefulTemplateLoader) { ((StatefulTemplateLoader) templateLoader).resetState(); } } }
/** * Removes all entries from the cache, forcing reloading of templates * on subsequent {@link #getTemplate(String, Locale, String, boolean)} * calls. If the configured template loader is * {@link StatefulTemplateLoader stateful}, then its * {@link StatefulTemplateLoader#resetState()} method is invoked as well. */ public void clear() { synchronized (storage) { storage.clear(); if (templateLoader instanceof StatefulTemplateLoader) { ((StatefulTemplateLoader) templateLoader).resetState(); } } }
/** * Removes all entries from the cache, forcing reloading of templates * on subsequent {@link #getTemplate(String, Locale, String, boolean)} * calls. If the configured template loader is * {@link StatefulTemplateLoader stateful}, then its * {@link StatefulTemplateLoader#resetState()} method is invoked as well. */ public void clear() { synchronized (storage) { storage.clear(); if (templateLoader instanceof StatefulTemplateLoader) { ((StatefulTemplateLoader) templateLoader).resetState(); } } }
/** * Removes all entries from the cache, forcing reloading of templates * on subsequent {@link #getTemplate(String, Locale, String, boolean)} * calls. If the configured template loader is * {@link StatefulTemplateLoader stateful}, then its * {@link StatefulTemplateLoader#resetState()} method is invoked as well. */ public void clear() { synchronized (storage) { storage.clear(); if(mainLoader instanceof StatefulTemplateLoader) { ((StatefulTemplateLoader)mainLoader).resetState(); } } }