Class DefaultViewMacroWrapper
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.view.macro.DefaultViewMacroWrapper
-
- All Implemented Interfaces:
ViewMacroWrapper
@Internal public class DefaultViewMacroWrapper extends Object implements ViewMacroWrapper
- Since:
- 5.9
-
-
Constructor Summary
Constructors Constructor Description DefaultViewMacroWrapper(HtmlToXmlConverter htmlToXmlConverter, com.atlassian.plugin.event.PluginEventManager pluginEventManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
init()
void
onPluginModuleDisable(com.atlassian.plugin.event.events.PluginModuleDisabledEvent ignored)
void
onPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent ignored)
String
wrap(ConversionContext context, Macro.OutputType outputType, String macroBody, MacroDefinition macroDefinition)
Execute macro wrapping.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroWrapper
wrap
-
-
-
-
Constructor Detail
-
DefaultViewMacroWrapper
public DefaultViewMacroWrapper(HtmlToXmlConverter htmlToXmlConverter, com.atlassian.plugin.event.PluginEventManager pluginEventManager)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
destroy
@PreDestroy public void destroy()
-
onPluginModuleEnabled
public void onPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent ignored)
-
onPluginModuleDisable
public void onPluginModuleDisable(com.atlassian.plugin.event.events.PluginModuleDisabledEvent ignored)
-
wrap
public String wrap(ConversionContext context, Macro.OutputType outputType, String macroBody, MacroDefinition macroDefinition)
Description copied from interface:ViewMacroWrapper
Execute macro wrapping. Example: Status andInfo macro
- Specified by:
wrap
in interfaceViewMacroWrapper
- Parameters:
context
- the conversion contextoutputType
- output typemacroBody
- rendered macro bodymacroDefinition
- definition of macro- Returns:
- macro has wrapped otherwise the original
-
-