Uses of Interface
freemarker.cache.TemplateLoader
Packages that use TemplateLoader
Package
Description
Template loading and caching.
Servlet for legacy "Model 2" frameworks that allows using FreeMarker
templates instead of JSP as the MVC View
(see in the Manual).
The fundamental, most commonly used API-s of FreeMarker;
start with
Configuration
(see also the
Getting Started in the Manual.)-
Uses of TemplateLoader in freemarker.cache
Subinterfaces of TemplateLoader in freemarker.cacheModifier and TypeInterfaceDescriptioninterface
Interface that can be implemented byTemplateLoader
-s that maintain some sort of internal state (i.e.Classes in freemarker.cache that implement TemplateLoaderModifier and TypeClassDescriptionclass
class
ATemplateLoader
that can load templates from the "classpath".class
ATemplateLoader
that uses files inside a specified directory as the source of templates.class
ATemplateLoader
that uses a set of other loaders to load the templates.class
class
This is an abstract template loader that can load templates whose location can be described by an URL.class
ATemplateLoader
that uses streams reachable throughServletContext.getResource(String)
as its source of templates.Methods in freemarker.cache that return TemplateLoaderModifier and TypeMethodDescriptionprotected static TemplateLoader
TemplateCache.createLegacyDefaultTemplateLoader()
Deprecated.MultiTemplateLoader.getTemplateLoader
(int index) Returns theTemplateLoader
at the given index.TemplateCache.getTemplateLoader()
Constructors in freemarker.cache with parameters of type TemplateLoaderModifierConstructorDescriptionMultiTemplateLoader
(TemplateLoader[] templateLoaders) Creates a new instance that will use the specified template loaders.TemplateCache
(TemplateLoader templateLoader) Deprecated.TemplateCache
(TemplateLoader templateLoader, CacheStorage cacheStorage) Deprecated.TemplateCache
(TemplateLoader templateLoader, CacheStorage cacheStorage, TemplateLookupStrategy templateLookupStrategy, TemplateNameFormat templateNameFormat, TemplateConfigurationFactory templateConfigurations, Configuration config) TemplateCache
(TemplateLoader templateLoader, CacheStorage cacheStorage, TemplateLookupStrategy templateLookupStrategy, TemplateNameFormat templateNameFormat, Configuration config) Same asTemplateCache(TemplateLoader, CacheStorage, TemplateLookupStrategy, TemplateNameFormat, TemplateConfigurationFactory, Configuration)
withnull
fortemplateConfigurations
-s.TemplateCache
(TemplateLoader templateLoader, CacheStorage cacheStorage, Configuration config) TemplateCache
(TemplateLoader templateLoader, Configuration config) Same asTemplateCache(TemplateLoader, CacheStorage, Configuration)
with a newSoftCacheStorage
as the 2nd parameter. -
Uses of TemplateLoader in freemarker.ext.servlet
Methods in freemarker.ext.servlet that return TemplateLoaderModifier and TypeMethodDescriptionprotected TemplateLoader
FreemarkerServlet.createTemplateLoader
(String templatePath) Create the template loader. -
Uses of TemplateLoader in freemarker.template
Methods in freemarker.template that return TemplateLoaderModifier and TypeMethodDescriptionConfiguration.getTemplateLoader()
The getter pair ofConfiguration.setTemplateLoader(TemplateLoader)
.Methods in freemarker.template with parameters of type TemplateLoaderModifier and TypeMethodDescriptionvoid
Configuration.setTemplateLoader
(TemplateLoader templateLoader) Sets aTemplateLoader
that is used to look up and load templates; as a side effect the template cache will be emptied (unless the new and the old values are the same).
TemplateLoader
should be always specified by the constructor caller.