com.atlassian.confluence.content.render.xhtml.migration
Class DefaultMacroReplacementRendererRepository

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.migration.DefaultMacroReplacementRendererRepository
All Implemented Interfaces:
MacroReplacementRendererRepository

public class DefaultMacroReplacementRendererRepository
extends Object
implements MacroReplacementRendererRepository

A MacroReplacementRendererRepository that looks up MacroReplacementRenderers based on the class of the macro to be replaced.


Constructor Summary
DefaultMacroReplacementRendererRepository(Set<MacroReplacementRenderer> macroReplacementRenderers)
           
 
Method Summary
 MacroReplacementRenderer getMacroReplacementRenderer(String macroClass)
          Get the MacroReplacementRenderer for the given class of v2 Macro.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMacroReplacementRendererRepository

public DefaultMacroReplacementRendererRepository(Set<MacroReplacementRenderer> macroReplacementRenderers)
Method Detail

getMacroReplacementRenderer

public MacroReplacementRenderer getMacroReplacementRenderer(String macroClass)
Description copied from interface: MacroReplacementRendererRepository
Get the MacroReplacementRenderer for the given class of v2 Macro.

Specified by:
getMacroReplacementRenderer in interface MacroReplacementRendererRepository
Parameters:
macroClass - the class name of a v2 Macro to be replaced.
Returns:
the MacroReplacementRenderer that handles the provided macro or null if there is no MacroReplacementRenderer


Copyright © 2003-2011 Atlassian. All Rights Reserved.