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 Started in the Manual.) -
-
Uses of Configuration in freemarker.cache
Methods in freemarker.cache that return Configuration Modifier and Type Method Description ConfigurationTemplateConfigurationFactory. getConfiguration()Returns the configuration this object belongs to, ornullif it isn't yet bound to aConfiguration.Constructors in freemarker.cache with parameters of type Configuration Constructor Description 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)withnullfortemplateConfigurations-s.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()ConfigurationTemplateConfiguration. getParentConfiguration()Returns the parentConfiguration, ornullif none was associated yet.Methods in freemarker.core with parameters of type Configuration Modifier and Type Method Description java.lang.ObjectCustomAttribute. get(Configuration cfg)Gets the value of aConfiguration-scope attribute from the givenConfiguration.voidCustomAttribute. set(java.lang.Object value, Configuration cfg)Sets the value of aConfiguration-scope attribute in the givenConfiguration.voidTemplateConfiguration. setParentConfiguration(Configuration cfg)Associates this instance with aConfiguration; usually you don't call this, as it's called internally when this instance is added to aConfiguration. -
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(java.lang.String name, java.lang.String content, Configuration config)Same asTemplate.getPlainTextTemplate(String, String, String, Configuration)withnullsourceNameargument.static TemplateTemplate. getPlainTextTemplate(java.lang.String name, java.lang.String sourceName, java.lang.String content, Configuration config)Creates (not "get"-s) 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(java.lang.String name, java.io.Reader reader, Configuration cfg)Template(java.lang.String name, java.io.Reader reader, Configuration cfg, java.lang.String encoding)Convenience constructor forTemplate(name, null, reader, cfg, encoding).Template(java.lang.String name, java.lang.String sourceCode, Configuration cfg)Convenience constructor forTemplate(name, new StringReader(reader), cfg).Template(java.lang.String name, java.lang.String sourceName, java.io.Reader reader, Configuration cfg)Constructs a template from a character stream.Template(java.lang.String name, java.lang.String sourceName, java.io.Reader reader, Configuration cfg, ParserConfiguration customParserConfiguration, java.lang.String encoding)Same asTemplate(String, String, Reader, Configuration, String), but also specifies aTemplateConfiguration.Template(java.lang.String name, java.lang.String sourceName, java.io.Reader reader, Configuration cfg, java.lang.String encoding)Same asTemplate(String, String, Reader, Configuration), but also specifies the template's encoding (not recommended).
-