Class DefaultMacroCounter
- java.lang.Object
-
- com.atlassian.confluence.macro.count.DefaultMacroCounter
-
- All Implemented Interfaces:
MacroCounter
public class DefaultMacroCounter extends Object implements MacroCounter
Aggregates macro usages by macro name- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description DefaultMacroCounter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMacroUsage(MacroDefinition macroDefinition, @Nullable Macro macro)
Record a single usage of the given macro.List<MacroCount>
getUsages()
-
-
-
Method Detail
-
addMacroUsage
public void addMacroUsage(MacroDefinition macroDefinition, @Nullable Macro macro)
Description copied from interface:MacroCounter
Record a single usage of the given macro.- Specified by:
addMacroUsage
in interfaceMacroCounter
macro
- null if this was an attempt to render an unknown macro
-
getUsages
public List<MacroCount> getUsages()
- Specified by:
getUsages
in interfaceMacroCounter
-
-