Class FreemarkerDefaultConfigurationFactory

java.lang.Object
org.glassfish.jersey.server.mvc.freemarker.FreemarkerDefaultConfigurationFactory
All Implemented Interfaces:
FreemarkerConfigurationFactory

public class FreemarkerDefaultConfigurationFactory extends Object implements FreemarkerConfigurationFactory
Handy 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.
Author:
Jeff Wilde (jeff.wilde at complicatedrobot.com)
  • Field Details

    • configuration

      protected final freemarker.template.Configuration configuration
  • Constructor Details

    • FreemarkerDefaultConfigurationFactory

      public FreemarkerDefaultConfigurationFactory(jakarta.servlet.ServletContext servletContext)
  • Method Details