public class DeviceTypeAwareRenderer extends Object implements Renderer
DeviceTypeRendererComponentModuleDescriptor
within the system and will keep track of these modules.
If there is an attempt to register a Renderer for a type that already has a Renderer then an IllegalStateException will be thrown and that Renderer will not register for any of its types (even those that did not clash).
Constructor and Description |
---|
DeviceTypeAwareRenderer(Renderer defaultRenderer,
com.atlassian.plugin.event.PluginEventManager pluginEventManager) |
Modifier and Type | Method and Description |
---|---|
void |
pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event) |
void |
pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event) |
List<BatchedRenderResult> |
render(BatchedRenderRequest... renderRequests)
Renders an ordered collection of batched render requests, e.g.
|
String |
render(ContentEntityObject content) |
String |
render(ContentEntityObject content,
ConversionContext conversionContext) |
String |
render(String xml,
ConversionContext conversionContext) |
RenderResult |
renderWithResult(String xml,
ConversionContext conversionContext) |
public DeviceTypeAwareRenderer(Renderer defaultRenderer, com.atlassian.plugin.event.PluginEventManager pluginEventManager)
public String render(ContentEntityObject content)
public String render(ContentEntityObject content, ConversionContext conversionContext)
public String render(String xml, ConversionContext conversionContext)
public RenderResult renderWithResult(String xml, ConversionContext conversionContext)
renderWithResult
in interface Renderer
public List<BatchedRenderResult> render(BatchedRenderRequest... renderRequests)
Renderer
public void pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
public void pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
Copyright © 2003–2020 Atlassian. All rights reserved.