|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RenderingEngine
The RenderingEngine is the main entry point for rendering content. It's main task is to prepare for rendering by
setting up the RenderingContext
and then calling on a Renderer
to
do the actual rendering.
Method Summary | |
---|---|
RenderingContext |
getRenderingContext()
Returns the current RenderingContext . |
void |
initListeners(OutputProvider out)
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. |
Method Detail |
---|
void render(javax.jcr.Node content, OutputProvider out) throws RenderException
TemplateDefinitionAssignment
to resolve the template assigned to the node.
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
void render(javax.jcr.Node content, Map<String,Object> contextObjects, OutputProvider out) throws RenderException
TemplateDefinitionAssignment
to resolve the template assigned
to the node.
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
void render(javax.jcr.Node content, RenderableDefinition definition, Map<String,Object> contextObjects, OutputProvider out) throws RenderException
RenderableDefinition
to render the content and exposes the given context objects to the
template script.
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
RenderingContext getRenderingContext()
RenderingContext
.
FIXME is this the right place? should we use IoC
void initListeners(OutputProvider out)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |