Class FreemarkerDefaultConfigurationFactory
- java.lang.Object
-
- org.glassfish.jersey.server.mvc.freemarker.FreemarkerDefaultConfigurationFactory
-
- All Implemented Interfaces:
FreemarkerConfigurationFactory
public class FreemarkerDefaultConfigurationFactory extends Object implements FreemarkerConfigurationFactory
HandyFreemarkerConfigurationFactorythat supplies a minimally configuredConfigurationable to createFreemarker templates. The recommended method to provide custom Freemarker configuration is to sub-class this class, further customize theconfigurationas desired in that class, and then register the sub-class with theFreemarkerMvcFeatureTEMPLATE_OBJECT_FACTORY property.- Author:
- Jeff Wilde (jeff.wilde at complicatedrobot.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected freemarker.template.Configurationconfiguration
-
Constructor Summary
Constructors Constructor Description FreemarkerDefaultConfigurationFactory(jakarta.servlet.ServletContext servletContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description freemarker.template.ConfigurationgetConfiguration()
-
-
-
Method Detail
-
getConfiguration
public freemarker.template.Configuration getConfiguration()
- Specified by:
getConfigurationin interfaceFreemarkerConfigurationFactory
-
-