info.magnolia.rendering.context
Class AggregationStateBasedRenderingContext
java.lang.Object
info.magnolia.rendering.context.AggregationStateBasedRenderingContext
- All Implemented Interfaces:
- RenderingContext
@LocalScoped
public class AggregationStateBasedRenderingContext
- extends Object
- implements RenderingContext
RenderingContext implementation that uses AggregationState.
- Version:
- $Id$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AggregationStateBasedRenderingContext
@Inject
public AggregationStateBasedRenderingContext(javax.inject.Provider<info.magnolia.cms.core.AggregationState> aggregationStateProvider,
RenderExceptionHandler exceptionHandler)
AggregationStateBasedRenderingContext
public AggregationStateBasedRenderingContext(info.magnolia.cms.core.AggregationState aggregationState,
RenderExceptionHandler exceptionHandler)
getMainContent
public javax.jcr.Node getMainContent()
- Specified by:
getMainContent
in interface RenderingContext
getCurrentContent
public javax.jcr.Node getCurrentContent()
- Specified by:
getCurrentContent
in interface RenderingContext
getRenderableDefinition
public RenderableDefinition getRenderableDefinition()
- Specified by:
getRenderableDefinition
in interface RenderingContext
push
public void push(javax.jcr.Node content,
RenderableDefinition renderableDefinition)
- Description copied from interface:
RenderingContext
- Pushes the content and renderableDefinition to be used for rendering. Output will be written using the
OutputProvider already set.
- Specified by:
push
in interface RenderingContext
push
public void push(javax.jcr.Node content,
RenderableDefinition renderableDefinition,
OutputProvider outputProvider)
- Description copied from interface:
RenderingContext
- Pushes the content and renderableDefinition to be used for rendering.
- Specified by:
push
in interface RenderingContext
outputProvider
- the OutputProvider to be used for output or null to use the OutputProvider already set
pop
public void pop()
- Specified by:
pop
in interface RenderingContext
getOutputProvider
public OutputProvider getOutputProvider()
- Specified by:
getOutputProvider
in interface RenderingContext
getAppendable
public AppendableWriter getAppendable()
throws IOException
- Specified by:
getAppendable
in interface RenderingContext
- Throws:
IOException
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Specified by:
getOutputStream
in interface RenderingContext
- Throws:
IOException
handleException
public void handleException(RenderException renderException)
- Specified by:
handleException
in interface RenderingContext
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.