Package com.atlassian.confluence.macro
Class LazyLoadingMacroWrapper
java.lang.Object
com.atlassian.confluence.macro.LazyLoadingMacroWrapper
- All Implemented Interfaces:
Macro
A wrapper for a
Macro
that is lazily loaded.
This is used to ensure that the macro is loaded by the module descriptor only on first usage.
- Since:
- 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.confluence.macro.Macro
Macro.BodyType, Macro.OutputType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe type of body that this macro has, this is used to infer the migration task if no custom one is provided.getMacro()
-
Constructor Details
-
LazyLoadingMacroWrapper
- Since:
- 9.1
-
-
Method Details
-
execute
public String execute(Map<String, String> parameters, String body, ConversionContext context) throws MacroExecutionException- Specified by:
execute
in interfaceMacro
- Throws:
MacroExecutionException
-
getBodyType
Description copied from interface:Macro
The type of body that this macro has, this is used to infer the migration task if no custom one is provided.- Specified by:
getBodyType
in interfaceMacro
- Returns:
- The type of body this macro has.
-
getOutputType
- Specified by:
getOutputType
in interfaceMacro
-
getMacro
-