|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.PageRenderQueueImpl
@Scope(value="perthread") public class PageRenderQueueImpl
This services keeps track of the page being rendered and the root command for the partial render, it is therefore request/thread scoped. There's a filter pipeline around the rendering, and that gets to be stateless because this service, at the end of the pipeline, is stateful.
Constructor Summary | |
---|---|
PageRenderQueueImpl(LoggerSource loggerSource)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageRenderQueueImpl(LoggerSource loggerSource)
Method Detail |
---|
public void initializeForCompletePage(Page page)
PageRenderQueue
initializeForCompletePage
in interface PageRenderQueue
public void setRenderingPage(Page page)
PageRenderQueue
setRenderingPage
in interface PageRenderQueue
public boolean isPartialRenderInitialized()
PageRenderQueue
PageRenderQueue.addPartialRenderer(org.apache.tapestry5.runtime.RenderCommand)
or
PageRenderQueue.addPartialMarkupRendererFilter(org.apache.tapestry5.services.PartialMarkupRendererFilter)
has been invoked.
isPartialRenderInitialized
in interface PageRenderQueue
public void addPartialRenderer(RenderCommand renderer)
PageRenderQueue
addPartialRenderer
in interface PageRenderQueue
renderer
- responsible for rendering a portion of the final markuppublic Page getRenderingPage()
PageRenderQueue
getRenderingPage
in interface PageRenderQueue
public void render(MarkupWriter writer)
PageRenderQueue
PageRenderQueue.initializeForCompletePage(org.apache.tapestry5.internal.structure.Page)
or
PageRenderQueue.addPartialRenderer(org.apache.tapestry5.runtime.RenderCommand)
methods.
render
in interface PageRenderQueue
writer
- to write markup topublic void addPartialMarkupRendererFilter(PartialMarkupRendererFilter filter)
PageRenderQueue
PartialMarkupRenderer
service which are permanent, shared and stateless.
Filters are added to the end of the pipeline (after all permanent contributions).
Filters will be executed in the order in which they are added.
addPartialMarkupRendererFilter
in interface PageRenderQueue
filter
- to add to the pipelinepublic void renderPartial(MarkupWriter writer, JSONObject reply)
PageRenderQueue
PageRenderQueue.addPartialRenderer(org.apache.tapestry5.runtime.RenderCommand)
.
renderPartial
in interface PageRenderQueue
writer
- to which markup should be writtenreply
- JSONObject which will contain the partial response
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |