@Singleton public class FreemarkerConfig extends Object
Configuration
. This only exposes the few
properties that Magnolia allows to configure and is able to handle properly.
It also provides a few additional methods used internally.Constructor and Description |
---|
FreemarkerConfig() |
Modifier and Type | Method and Description |
---|---|
List<MagnoliaModelFactory> |
getModelFactories() |
freemarker.template.ObjectWrapper |
getObjectWrapper() |
Map<String,freemarker.template.TemplateModel> |
getSharedVariables() |
freemarker.template.TemplateExceptionHandler |
getTemplateExceptionHandler() |
freemarker.cache.TemplateLoader |
getTemplateLoader() |
List<freemarker.cache.TemplateLoader> |
getTemplateLoaders() |
protected freemarker.template.ObjectWrapper |
newObjectWrapper() |
void |
setModelFactories(List<MagnoliaModelFactory> registeredModelFactories) |
void |
setSharedVariables(Map<String,Object> configuredSharedVariables) |
void |
setTemplateExceptionHandler(freemarker.template.TemplateExceptionHandler templateExceptionHandler) |
void |
setTemplateLoaders(List<freemarker.cache.TemplateLoader> templateLoaders) |
public freemarker.template.ObjectWrapper getObjectWrapper()
protected freemarker.template.ObjectWrapper newObjectWrapper()
public freemarker.cache.TemplateLoader getTemplateLoader()
public List<MagnoliaModelFactory> getModelFactories()
public void setModelFactories(List<MagnoliaModelFactory> registeredModelFactories)
public List<freemarker.cache.TemplateLoader> getTemplateLoaders()
public void setTemplateLoaders(List<freemarker.cache.TemplateLoader> templateLoaders)
public void setSharedVariables(Map<String,Object> configuredSharedVariables) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
public freemarker.template.TemplateExceptionHandler getTemplateExceptionHandler()
public void setTemplateExceptionHandler(freemarker.template.TemplateExceptionHandler templateExceptionHandler)
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.