Class FreemarkerTemplateProcessorImpl
java.lang.Object
ch.tocco.nice2.optional.cms.impl.publish.output.freemarker.FreemarkerTemplateProcessorImpl
- All Implemented Interfaces:
FreemarkerTemplateProcessor
@Component
public class FreemarkerTemplateProcessorImpl
extends Object
implements FreemarkerTemplateProcessor
-
Constructor Summary
ConstructorDescriptionFreemarkerTemplateProcessorImpl
(CachingTemplateLoader templateLoader, FreemarkerTemplateModelService freemarkerTemplateModelService, L10N l10N, TimezoneResolverService timezoneResolverService, freemarker.template.ObjectWrapper objectWrapper, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionvoid
processTemplate
(Map<String, Object> model, freemarker.template.Template template) processTemplate
(Map<String, Object> model, String templateName) void
setPostProcessors
(List<PostProcessorContribution> postProcessors)
-
Constructor Details
-
FreemarkerTemplateProcessorImpl
public FreemarkerTemplateProcessorImpl(CachingTemplateLoader templateLoader, FreemarkerTemplateModelService freemarkerTemplateModelService, L10N l10N, TimezoneResolverService timezoneResolverService, freemarker.template.ObjectWrapper objectWrapper, org.slf4j.Logger log)
-
-
Method Details
-
initializeService
@PostConstruct public void initializeService() -
processTemplate
public String processTemplate(Map<String, Object> model, String templateName) throws IOException, freemarker.template.TemplateException- Specified by:
processTemplate
in interfaceFreemarkerTemplateProcessor
- Throws:
IOException
freemarker.template.TemplateException
-
processTemplate
public String processTemplate(Map<String, Object> model, freemarker.template.Template template) throws freemarker.template.TemplateException, IOException- Throws:
freemarker.template.TemplateException
IOException
-
setPostProcessors
-