public class FreemarkerTemplateViewRendererFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean<info.magnolia.rendering.renderer.Renderer>
FreemarkerTemplateViewRenderer
,
delegating instantiate to the ComponentProvider
so we don't need to expose its dependencies to Spring context.FreemarkerTemplateViewRenderer
Constructor and Description |
---|
FreemarkerTemplateViewRendererFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
addContextAttribute(String name,
Class<?> componentClass) |
void |
addContextAttribute(String name,
info.magnolia.rendering.renderer.ContextAttributeConfiguration contextAttributeConfiguration) |
protected info.magnolia.rendering.renderer.Renderer |
createInstance() |
Map<String,info.magnolia.rendering.renderer.ContextAttributeConfiguration> |
getContextAttributes() |
Class<?> |
getObjectType() |
boolean |
isExposeModelAsRequestAttributes() |
boolean |
isExposeSpringMacroHelpers() |
void |
setContextAttributes(Map<String,info.magnolia.rendering.renderer.ContextAttributeConfiguration> contextAttributes) |
void |
setExposeModelAsRequestAttributes(boolean exposeModelAsRequestAttributes) |
void |
setExposeSpringMacroHelpers(boolean exposeSpringMacroHelpers) |
public FreemarkerTemplateViewRendererFactoryBean()
public Map<String,info.magnolia.rendering.renderer.ContextAttributeConfiguration> getContextAttributes()
public void setContextAttributes(Map<String,info.magnolia.rendering.renderer.ContextAttributeConfiguration> contextAttributes)
public void addContextAttribute(String name, info.magnolia.rendering.renderer.ContextAttributeConfiguration contextAttributeConfiguration)
public boolean isExposeModelAsRequestAttributes()
public void setExposeModelAsRequestAttributes(boolean exposeModelAsRequestAttributes)
public boolean isExposeSpringMacroHelpers()
public void setExposeSpringMacroHelpers(boolean exposeSpringMacroHelpers)
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<info.magnolia.rendering.renderer.Renderer>
getObjectType
in class org.springframework.beans.factory.config.AbstractFactoryBean<info.magnolia.rendering.renderer.Renderer>
Copyright © 2009–2020 Magnolia International Ltd.. All rights reserved.