Class MarkupTemplateEngine.CachingTemplateResolver

    • Field Detail

      • useCache

        protected boolean useCache
    • Constructor Detail

      • CachingTemplateResolver

        public CachingTemplateResolver​(Map<String,​URL> cache)
        Creates a new caching template resolver. The cache implementation being used depends on the use of the template engine. If multiple templates can be rendered in parallel, it must be using a thread-safe cache.
        cache - the backing cache
      • CachingTemplateResolver

        public CachingTemplateResolver()
        Creates a new caching template resolver using a concurrent hash map as the backing cache.