Uses of Interface
freemarker.cache.TemplateLoader
-
Packages that use TemplateLoader Package Description 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 withConfiguration(see also the Getting Stared in the Manual.) -
-
Uses of TemplateLoader in freemarker.cache
Subinterfaces of TemplateLoader in freemarker.cache Modifier and Type Interface Description interfaceStatefulTemplateLoaderInterface that can be implemented by template loaders that maintain some sort of internal state (i.e.Classes in freemarker.cache that implement TemplateLoader Modifier and Type Class Description classClassTemplateLoaderATemplateLoaderthat can load templates from the "classpath".classFileTemplateLoaderATemplateLoaderthat uses files inside a specified directory as the source of templates.classMultiTemplateLoaderATemplateLoaderthat uses a set of other loaders to load the templates.classStringTemplateLoaderATemplateLoaderthat uses a Map with Strings as its source of templates.classURLTemplateLoaderThis is an abstract template loader that can load templates whose location can be described by an URL.classWebappTemplateLoaderATemplateLoaderthat uses streams reachable throughServletContext.getResource(String)as its source of templates.Methods in freemarker.cache that return TemplateLoader Modifier and Type Method Description protected static TemplateLoaderTemplateCache. createLegacyDefaultTemplateLoader()Deprecated.TheTemplateLoadershould be always specified by the constructor caller.TemplateLoaderMultiTemplateLoader. getTemplateLoader(int index)Returns theTemplateLoaderat the given index.TemplateLoaderTemplateCache. getTemplateLoader()Constructors in freemarker.cache with parameters of type TemplateLoader Constructor Description MultiTemplateLoader(TemplateLoader[] loaders)Creates a new multi template Loader that will use the specified loaders.TemplateCache(TemplateLoader templateLoader)Deprecated.TemplateCache(TemplateLoader templateLoader, CacheStorage cacheStorage)Deprecated.TemplateCache(TemplateLoader templateLoader, CacheStorage cacheStorage, TemplateLookupStrategy templateLookupStrategy, TemplateNameFormat templateNameFormat, Configuration config)TemplateCache(TemplateLoader templateLoader, CacheStorage cacheStorage, Configuration config)TemplateCache(TemplateLoader templateLoader, Configuration config)Same asTemplateCache(TemplateLoader, CacheStorage, Configuration)with a newSoftCacheStorageas the 2nd parameter. -
Uses of TemplateLoader in freemarker.ext.servlet
Methods in freemarker.ext.servlet that return TemplateLoader Modifier and Type Method Description protected TemplateLoaderFreemarkerServlet. createTemplateLoader(String templatePath)Create the template loader. -
Uses of TemplateLoader in freemarker.template
Methods in freemarker.template that return TemplateLoader Modifier and Type Method Description TemplateLoaderConfiguration. getTemplateLoader()The getter pair ofConfiguration.setTemplateLoader(TemplateLoader).Methods in freemarker.template with parameters of type TemplateLoader Modifier and Type Method Description voidConfiguration. setTemplateLoader(TemplateLoader templateLoader)Sets aTemplateLoaderthat is used to look up and load templates; as a side effect the template cache will be emptied.
-