IdAllocator idAllocator = new IdAllocator(namespace);
DocumentLinker linker = environment.peekRequired(DocumentLinker.class);
JavaScriptSupportImpl support = new JavaScriptSupportImpl(linker, javascriptStackSource,
javascriptStackPathConstructor, idAllocator, true);
environment.push(JavaScriptSupport.class, support);
renderer.renderMarkup(writer, reply);
environment.pop(JavaScriptSupport.class);
support.commit();
}
};
PartialMarkupRendererFilter renderSupport = new PartialMarkupRendererFilter()
{
public void renderMarkup(MarkupWriter writer, JSONObject reply, PartialMarkupRenderer renderer)
{
JavaScriptSupport javascriptSupport = environment.peekRequired(JavaScriptSupport.class);
RenderSupportImpl support = new RenderSupportImpl(symbolSource, assetSource, javascriptSupport);
environment.push(RenderSupport.class, support);
renderer.renderMarkup(writer, reply);
support.commit();
environment.pop(RenderSupport.class);
}
};
PartialMarkupRendererFilter clientBehaviorSupport = new PartialMarkupRendererFilter()
{
public void renderMarkup(MarkupWriter writer, JSONObject reply, PartialMarkupRenderer renderer)
{
JavaScriptSupport javascriptSupport = environment.peekRequired(JavaScriptSupport.class);
ClientBehaviorSupportImpl support = new ClientBehaviorSupportImpl(javascriptSupport, environment);
environment.push(ClientBehaviorSupport.class, support);
renderer.renderMarkup(writer, reply);
environment.pop(ClientBehaviorSupport.class);
support.commit();
}
};
PartialMarkupRendererFilter heartbeat = new PartialMarkupRendererFilter()
{