@Internal public class DefaultViewMacroWrapper extends Object implements ViewMacroWrapper
| Constructor and Description |
|---|
DefaultViewMacroWrapper(XMLEventFactory xmlEventFactory,
XmlEventReaderFactory xmlEventReaderFactory,
XMLOutputFactory xmlOutputFactory,
HtmlToXmlConverter htmlToXmlConverter,
com.atlassian.plugin.event.PluginEventManager pluginEventManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Streamable |
executeWrapMacro(ConversionContext context,
Macro macro,
MarshallerMetricsCollector metricsCollector,
MacroDefinition macroDefinition,
Map<String,String> macroParameters)
Execute macro wrapping.
|
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,
boolean wrap) |
public DefaultViewMacroWrapper(XMLEventFactory xmlEventFactory, XmlEventReaderFactory xmlEventReaderFactory, XMLOutputFactory xmlOutputFactory, HtmlToXmlConverter htmlToXmlConverter, com.atlassian.plugin.event.PluginEventManager pluginEventManager)
@PostConstruct public void init()
@PreDestroy public void destroy()
public void onPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent ignored)
public void onPluginModuleDisable(com.atlassian.plugin.event.events.PluginModuleDisabledEvent ignored)
public String wrap(ConversionContext context, Macro.OutputType outputType, String macroBody, MacroDefinition macroDefinition, boolean wrap)
wrap in interface ViewMacroWrapperpublic Streamable executeWrapMacro(ConversionContext context, Macro macro, MarshallerMetricsCollector metricsCollector, MacroDefinition macroDefinition, Map<String,String> macroParameters) throws MacroExecutionException
ViewMacroWrapperInfo macro
executeWrapMacro in interface ViewMacroWrappercontext - the conversion contextmacro - Confluence macrometricsCollector - recording of execution and streaming as seperate
phases. MetricsCollectingMarshallermacroDefinition - definition of macromacroParameters - macro parameterMacroExecutionException - if an error occurs during executingCopyright © 2003–2018 Atlassian. All rights reserved.