Uses of Package
freemarker.cache
Packages that use freemarker.cache
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.)-
Classes in freemarker.cache used by freemarker.cacheClassDescriptionCache storage abstracts away the storage aspects of a cache - associating an object with a key, retrieval and removal via the key.A cache storage that has a
getSize()
method for returning the current number of cache entries.An optional interface for cache storage that knows whether it can be concurrently accessible without synchronization.Matches the file extension; unlike other matchers, by default case insensitive.As opposed toPathGlobMatcher
, it only compares the "file name" part (the part after the last/
) of the source name with the given glob.Returns the first non-null
result of the child factories, ignoring all further child factories.A cache storage that doesn't store anything.Matches the whole template source name (also known as template source path) with the given glob.Interface that can be implemented byTemplateLoader
-s that maintain some sort of internal state (i.e.Used for the return value ofTemplateCache.getTemplate(String, Locale, Object, String, boolean)
.Creates (or returns)TemplateConfiguration
-s for template sources.Non-I/O exception thrown byTemplateConfigurationFactory
-s.FreeMarker loads template "files" through objects that implement this interface, thus the templates need not be real files, and can come from any kind of data source (like classpath, servlet context, database, etc).Used as the parameter ofTemplateLookupStrategy.lookup(TemplateLookupContext)
.The return value ofTemplateLookupStrategy.lookup(TemplateLookupContext)
and similar lookup methods.Finds theTemplateLoader
-level (storage-level) template source for the template name with which the template was requested (as inConfiguration.getTemplate(String)
).Symbolizes a template name format, which defines the basic syntax of names through algorithms such as normalization.This is an abstract template loader that can load templates whose location can be described by an URL. -
Classes in freemarker.cache used by freemarker.ext.servletClassDescriptionFreeMarker loads template "files" through objects that implement this interface, thus the templates need not be real files, and can come from any kind of data source (like classpath, servlet context, database, etc).
-
Classes in freemarker.cache used by freemarker.templateClassDescriptionCache storage abstracts away the storage aspects of a cache - associating an object with a key, retrieval and removal via the key.Creates (or returns)
TemplateConfiguration
-s for template sources.FreeMarker loads template "files" through objects that implement this interface, thus the templates need not be real files, and can come from any kind of data source (like classpath, servlet context, database, etc).Finds theTemplateLoader
-level (storage-level) template source for the template name with which the template was requested (as inConfiguration.getTemplate(String)
).Symbolizes a template name format, which defines the basic syntax of names through algorithms such as normalization.