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() |
@Inject
public FreemarkerDefaultConfigurationFactory(@Optional
javax.servlet.ServletContext servletContext)
public freemarker.template.Configuration getConfiguration()
getConfiguration in interface FreemarkerConfigurationFactoryCopyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.