## Uses of Interface
freemarker.cache.TemplateLoader

Packages that use TemplateLoader
freemarker.cache: Template loading and caching.
freemarker.ext.servlet: Servlet for legacy "Model 2" frameworks that allows using FreeMarker templates instead of JSP as the MVC View (see in the Manual).
freemarker.template: The fundamental, most commonly used API-s of FreeMarker; start with `Configuration` (see also the Getting Stared in the Manual.)

### Uses of TemplateLoader in freemarker.cache

Subinterfaces of TemplateLoader in freemarker.cache
`interface` `StatefulTemplateLoader` Interface that can be implemented by `TemplateLoader`-s that maintain some sort of internal state (i.e.

Classes in freemarker.cache that implement TemplateLoader
`class` `ByteArrayTemplateLoader` A `TemplateLoader` that uses a `Map` with `byte[]` as its source of templates.
`class` `ClassTemplateLoader` A `TemplateLoader` that can load templates from the "classpath".
`class` `FileTemplateLoader` A `TemplateLoader` that uses files inside a specified directory as the source of templates.
`class` `MultiTemplateLoader` A `TemplateLoader` that uses a set of other loaders to load the templates.
`class` `StringTemplateLoader` A `TemplateLoader` that uses a `Map` with `String`-s as its source of templates.
`class` `URLTemplateLoader` This is an abstract template loader that can load templates whose location can be described by an URL.
`class` `WebappTemplateLoader` A `TemplateLoader` that uses streams reachable through `ServletContext.getResource(String)` as its source of templates.

Methods in freemarker.cache that return TemplateLoader
`protected static TemplateLoader` TemplateCache.`createLegacyDefaultTemplateLoader()` Deprecated. The `TemplateLoader` should be always specified by the constructor caller.
`TemplateLoader` TemplateCache.`getTemplateLoader()`
`TemplateLoader` MultiTemplateLoader.`getTemplateLoader(int index)` Returns the `TemplateLoader` at the given index.

Constructors in freemarker.cache with parameters of type TemplateLoader
Constructor and Description
`MultiTemplateLoader(TemplateLoader[] loaders)` Creates a new multi template Loader that will use the specified loaders.
`TemplateCache(TemplateLoader templateLoader)` Deprecated. Use `TemplateCache.TemplateCache(TemplateLoader, CacheStorage, Configuration)` instead.
`TemplateCache(TemplateLoader templateLoader, CacheStorage cacheStorage)` Deprecated. Use `TemplateCache.TemplateCache(TemplateLoader, CacheStorage, Configuration)` instead.
`TemplateCache(TemplateLoader templateLoader, CacheStorage cacheStorage, Configuration config)` Same as `TemplateCache.TemplateCache(TemplateLoader, CacheStorage, TemplateLookupStrategy, TemplateNameFormat, Configuration)` with `TemplateLookupStrategy.DEFAULT_2_3_0` and `TemplateNameFormat.DEFAULT_2_3_0`.
`TemplateCache(TemplateLoader templateLoader, CacheStorage cacheStorage, TemplateLookupStrategy templateLookupStrategy, TemplateNameFormat templateNameFormat, Configuration config)` Same as `TemplateCache.TemplateCache(TemplateLoader, CacheStorage, TemplateLookupStrategy, TemplateNameFormat, TemplateConfigurationFactory, Configuration)` with `null` for `templateConfigurations`-s.
`TemplateCache(TemplateLoader templateLoader, CacheStorage cacheStorage, TemplateLookupStrategy templateLookupStrategy, TemplateNameFormat templateNameFormat, TemplateConfigurationFactory templateConfigurations, Configuration config)`
`TemplateCache(TemplateLoader templateLoader, Configuration config)` Same as `TemplateCache.TemplateCache(TemplateLoader, CacheStorage, Configuration)` with a new `SoftCacheStorage` as the 2nd parameter.

### Uses of TemplateLoader in freemarker.ext.servlet

Methods in freemarker.ext.servlet that return TemplateLoader
`protected TemplateLoader` FreemarkerServlet.`createTemplateLoader(String templatePath)` Create the template loader.

### Uses of TemplateLoader in freemarker.template

Methods in freemarker.template that return TemplateLoader
`TemplateLoader` Configuration.`getTemplateLoader()` The getter pair of `Configuration.setTemplateLoader(TemplateLoader)`.

Methods in freemarker.template with parameters of type TemplateLoader
`void` Configuration.`setTemplateLoader(TemplateLoader templateLoader)` Sets a `TemplateLoader` that is used to look up and load templates; as a side effect the template cache will be emptied.