|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.rendering.engine.DefaultRenderingEngine
public class DefaultRenderingEngine
Default implementation of RenderingEngine
.
Field Summary | |
---|---|
protected static Map<String,Object> |
EMPTY_CONTEXT
|
Constructor Summary | |
---|---|
protected |
DefaultRenderingEngine()
Used to create an observed proxy object. |
|
DefaultRenderingEngine(RendererRegistry rendererRegistry,
TemplateDefinitionAssignment templateDefinitionAssignment,
RenderableVariationResolver variationResolver,
javax.inject.Provider<RenderingContext> renderingContextProvider)
|
Method Summary | |
---|---|
Boolean |
getAutoPopulateFromRequest()
|
protected RenderableDefinition |
getRenderableDefinitionFor(javax.jcr.Node content)
|
Boolean |
getRenderEmptyAreas()
|
protected Renderer |
getRendererFor(RenderableDefinition definition)
|
RenderingContext |
getRenderingContext()
Returns the current RenderingContext . |
void |
initListeners(OutputProvider output)
Inits listeners. |
void |
render(javax.jcr.Node content,
Map<String,Object> contextObjects,
OutputProvider out)
Renders the content with its assigned template and exposes the given context objects to the template script. |
void |
render(javax.jcr.Node content,
OutputProvider out)
Renders the content with its assigned template. |
void |
render(javax.jcr.Node content,
RenderableDefinition definition,
Map<String,Object> contextObjects,
OutputProvider out)
Uses a specific RenderableDefinition to render the content and exposes the given context objects to the
template script. |
void |
setAutoPopulateFromRequest(Boolean autopopulateFromRequest)
|
void |
setRenderEmptyAreas(Boolean renderEmptyAreas)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Map<String,Object> EMPTY_CONTEXT
Constructor Detail |
---|
protected DefaultRenderingEngine()
public DefaultRenderingEngine(RendererRegistry rendererRegistry, TemplateDefinitionAssignment templateDefinitionAssignment, RenderableVariationResolver variationResolver, javax.inject.Provider<RenderingContext> renderingContextProvider)
Method Detail |
---|
public void render(javax.jcr.Node content, OutputProvider out) throws RenderException
RenderingEngine
TemplateDefinitionAssignment
to resolve the template assigned to the node.
render
in interface RenderingEngine
content
- the node to renderout
- the OutputProvider to be used for output or null if the OutputProvider already set in RenderingContext should be used
RenderException
public void render(javax.jcr.Node content, Map<String,Object> contextObjects, OutputProvider out) throws RenderException
RenderingEngine
TemplateDefinitionAssignment
to resolve the template assigned
to the node.
render
in interface RenderingEngine
content
- the node to rendercontextObjects
- objects to expose to the template scriptout
- the OutputProvider to be used for output or null if the OutputProvider already set in RenderingContext should be used
RenderException
public void render(javax.jcr.Node content, RenderableDefinition definition, Map<String,Object> contextObjects, OutputProvider out) throws RenderException
RenderingEngine
RenderableDefinition
to render the content and exposes the given context objects to the
template script.
render
in interface RenderingEngine
content
- the node to rendercontextObjects
- objects to expose to the template scriptout
- the OutputProvider to be used for output or null if the OutputProvider already set in RenderingContext should be used
RenderException
protected RenderableDefinition getRenderableDefinitionFor(javax.jcr.Node content) throws RenderException
RenderException
protected Renderer getRendererFor(RenderableDefinition definition) throws RenderException
RenderException
public RenderingContext getRenderingContext()
RenderingEngine
RenderingContext
.
FIXME is this the right place? should we use IoC
getRenderingContext
in interface RenderingEngine
public void initListeners(OutputProvider output)
RenderingEngine
initListeners
in interface RenderingEngine
public Boolean getAutoPopulateFromRequest()
getAutoPopulateFromRequest
in interface RenderingEngine
public void setAutoPopulateFromRequest(Boolean autopopulateFromRequest)
public Boolean getRenderEmptyAreas()
getRenderEmptyAreas
in interface RenderingEngine
public void setRenderEmptyAreas(Boolean renderEmptyAreas)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |