public class

LazyLoadingMacroWrapper

extends Object
implements Macro
java.lang.Object
   ↳ com.atlassian.confluence.macro.LazyLoadingMacroWrapper

Class Overview

Used to wrap a Macro in a com.atlassian.util.concurrent.LazyReference.

This is used to ensure that the macro is loaded by the module descriptor only on first usage.

Summary

Public Constructors
LazyLoadingMacroWrapper(LazyReference<Macro> delegate)
Public Methods
String execute(Map<StringString> parameters, String body, ConversionContext context)
Macro.BodyType getBodyType()
The type of body that this macro has, this is used to infer the migration task if no custom one is provided.
Macro getMacro()
Macro.OutputType getOutputType()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.macro.Macro

Public Constructors

public LazyLoadingMacroWrapper (LazyReference<Macro> delegate)

Public Methods

public String execute (Map<StringString> parameters, String body, ConversionContext context)

public Macro.BodyType getBodyType ()

The type of body that this macro has, this is used to infer the migration task if no custom one is provided.

Returns
  • The type of body this macro has.

public Macro getMacro ()

public Macro.OutputType getOutputType ()