public class FreemarkerDefaultConfigurationFactory extends Object implements FreemarkerConfigurationFactory
FreemarkerConfigurationFactory
that supplies a minimally
configured Configuration
able to
create Freemarker templates
.
The recommended method to provide custom Freemarker configuration is to
sub-class this class, further customize the
configuration
as desired in that
class, and then register the sub-class with the FreemarkerMvcFeature
TEMPLATE_OBJECT_FACTORY property.Modifier and Type | Field and Description |
---|---|
protected freemarker.template.Configuration |
configuration |
Constructor and Description |
---|
FreemarkerDefaultConfigurationFactory(javax.servlet.ServletContext servletContext) |
Modifier and Type | Method and Description |
---|---|
freemarker.template.Configuration |
getConfiguration() |
public FreemarkerDefaultConfigurationFactory(javax.servlet.ServletContext servletContext)
public freemarker.template.Configuration getConfiguration()
getConfiguration
in interface FreemarkerConfigurationFactory
Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.