Class DelegatingTemplateRenderer

  extended by com.atlassian.confluence.renderer.template.DelegatingTemplateRenderer
All Implemented Interfaces:

public class DelegatingTemplateRenderer
extends Object
implements TemplateRenderer

Template renderer that tries to find a configured renderer that is able to handle the supplied template by its file extension

Constructor Summary
DelegatingTemplateRenderer(com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Summary
 void renderTo(Appendable appendable, String templateProviderPluginKey, String templateName, Map<String,Object> data)
          Render a plugin-provided template to a Writer.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public DelegatingTemplateRenderer(com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Detail


public void renderTo(Appendable appendable,
                     String templateProviderPluginKey,
                     String templateName,
                     Map<String,Object> data)
              throws TemplateRenderingException
Description copied from interface: TemplateRenderer
Render a plugin-provided template to a Writer. The format of the data object to be passed in to the template is entirely dependent on the template implementation

Specified by:
renderTo in interface TemplateRenderer
appendable - the buffer to write the template output into
templateProviderPluginKey - the plugin that provides the template as a resource
templateName - the name of the plugin resource that contains the template
data - the data to pass into the template
TemplateRenderingException - if something goes wrong during the rendering

Copyright © 2003-2012 Atlassian. All Rights Reserved.