com.atlassian.confluence.content.render.xhtml
Class DeviceTypeAwareRenderer

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.DeviceTypeAwareRenderer
All Implemented Interfaces:
Renderer

public class DeviceTypeAwareRenderer
extends Object
implements Renderer

A renderer which is aware of the registration of 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 Summary
DeviceTypeAwareRenderer(Renderer defaultRenderer, com.atlassian.plugin.event.PluginEventManager pluginEventManager)
           
 
Method Summary
 void pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
           
 void pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
           
 String render(ContentEntityObject content)
           
 String render(ContentEntityObject content, ConversionContext conversionContext)
           
 String render(String xml, ConversionContext conversionContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceTypeAwareRenderer

public DeviceTypeAwareRenderer(Renderer defaultRenderer,
                               com.atlassian.plugin.event.PluginEventManager pluginEventManager)
Method Detail

render

public String render(ContentEntityObject content)
Specified by:
render in interface Renderer

render

public String render(ContentEntityObject content,
                     ConversionContext conversionContext)
Specified by:
render in interface Renderer

render

public String render(String xml,
                     ConversionContext conversionContext)
Specified by:
render in interface Renderer

pluginModuleEnabled

public void pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)

pluginModuleDisabled

public void pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)


Copyright © 2003–2015 Atlassian. All rights reserved.