public class NoScriptRenderer extends AbstractRenderer
Modifier and Type | Field and Description |
---|---|
static String |
NO_SCRIPT_RENDERER |
MODEL_ATTRIBUTE
Constructor and Description |
---|
NoScriptRenderer()
Deprecated.
since 5.0.2, use
NoScriptRenderer(RenderingEngine) |
NoScriptRenderer(RenderingEngine renderingEngine) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
newContext()
Create a new context object which is a map.
|
protected void |
onRender(javax.jcr.Node content,
RenderableDefinition definition,
RenderingContext renderingCtx,
Map<String,Object> ctx,
String templateScript)
Finally execute the rendering.
|
void |
render(RenderingContext renderingCtx,
Map<String,Object> contextObjects)
Called by
RenderingEngine after it has setup the RenderingContext . |
addContextAttribute, getAggregationStateSafely, getContextAttributes, getMainContentSafely, newModel, newModel, resolveTemplateScript, restoreContext, saveAttribute, saveContextState, setContextAttribute, setContextAttributes, setupContext, wrapNodeForModel, wrapNodeForTemplate
public static final String NO_SCRIPT_RENDERER
public NoScriptRenderer()
NoScriptRenderer(RenderingEngine)
@Inject public NoScriptRenderer(RenderingEngine renderingEngine)
public void render(RenderingContext renderingCtx, Map<String,Object> contextObjects) throws RenderException
Renderer
RenderingEngine
after it has setup the RenderingContext
.render
in interface Renderer
render
in class AbstractRenderer
renderingCtx
- rendering context prepared by the callercontextObjects
- objects to expose to the template scriptRenderException
protected void onRender(javax.jcr.Node content, RenderableDefinition definition, RenderingContext renderingCtx, Map<String,Object> ctx, String templateScript) throws RenderException
AbstractRenderer
onRender
in class AbstractRenderer
RenderException
protected Map<String,Object> newContext()
AbstractRenderer
newContext
in class AbstractRenderer
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.