Uses of Class
freemarker.template.Configuration
-
Packages that use Configuration Package Description freemarker.cache Template loading and caching.freemarker.core The seldom used or advanced parts of the fundamental FreeMarker API, compared tofreemarker.template.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 Configuration in freemarker.cache
Methods in freemarker.cache with parameters of type Configuration Modifier and Type Method Description voidTemplateCache. setConfiguration(Configuration config)Deprecated.Use theTemplateCache(TemplateLoader, CacheStorage, Configuration)constructor.Constructors in freemarker.cache with parameters of type Configuration Constructor Description 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 Configuration in freemarker.core
Methods in freemarker.core that return Configuration Modifier and Type Method Description ConfigurationEnvironment. getConfiguration()Methods in freemarker.core with parameters of type Configuration Modifier and Type Method Description ObjectCustomAttribute. get(Configuration cfg)Gets the value of aConfiguration-scope attribute from the givenConfiguration.voidCustomAttribute. set(Object value, Configuration cfg)Sets the value of aConfiguration-scope attribute in the givenConfiguration. -
Uses of Configuration in freemarker.ext.servlet
Methods in freemarker.ext.servlet that return Configuration Modifier and Type Method Description protected ConfigurationFreemarkerServlet. createConfiguration()Creates the FreeMarkerConfigurationsingleton and (when overidden) maybe sets its defaults.protected ConfigurationFreemarkerServlet. getConfiguration()Returns theConfigurationobject used by this servlet. -
Uses of Configuration in freemarker.template
Methods in freemarker.template that return Configuration Modifier and Type Method Description ConfigurationTemplate. getConfiguration()Returns the Configuration object associated with this template.static ConfigurationConfiguration. getDefaultConfiguration()Deprecated.The usage of the static singleton (the "default")Configurationinstance can easily cause erroneous, unpredictable behavior.Methods in freemarker.template with parameters of type Configuration Modifier and Type Method Description static TemplateTemplate. getPlainTextTemplate(String name, String content, Configuration config)Same asTemplate.getPlainTextTemplate(String, String, String, Configuration)withnullsourceNameargument.static TemplateTemplate. getPlainTextTemplate(String name, String sourceName, String content, Configuration config)Creates aTemplatethat only contains a single block of static text, no dynamic content.static voidConfiguration. setDefaultConfiguration(Configuration config)Deprecated.Using the "default"Configurationinstance can easily lead to erroneous, unpredictable behaviour.Constructors in freemarker.template with parameters of type Configuration Constructor Description Template(String name, Reader reader, Configuration cfg)Template(String name, Reader reader, Configuration cfg, String encoding)Deprecated.In most applications, useTemplate(String, Reader, Configuration)instead, which doesn't specify the encoding.Template(String name, String sourceCode, Configuration cfg)Convenience constructor forTemplate(name, new StringReader(reader), cfg).Template(String name, String sourceName, Reader reader, Configuration cfg)Constructs a template from a character stream.Template(String name, String sourceName, Reader reader, Configuration cfg, String encoding)Deprecated.In most applications, useTemplate(String, String, Reader, Configuration)instead, which doesn't specify the encoding.
-