com.atlassian.confluence.renderer
Interface MacroManager

All Superinterfaces:
com.atlassian.renderer.v2.macro.MacroManager

public interface MacroManager
extends com.atlassian.renderer.v2.macro.MacroManager

Retrieval, registration and unregistration of macros.

Since:
3.0

Method Summary
 java.util.Map<java.lang.String,com.atlassian.renderer.v2.macro.Macro> getMacros()
          Returns the currently enabled macros, excluding user macros.
 void registerMacro(java.lang.String name, com.atlassian.renderer.v2.macro.Macro macro)
          Registers a new macro with the given name.
 void unregisterMacro(java.lang.String name)
          Unregisters the macro with the given name.
 
Methods inherited from interface com.atlassian.renderer.v2.macro.MacroManager
getEnabledMacro
 

Method Detail

getMacros

java.util.Map<java.lang.String,com.atlassian.renderer.v2.macro.Macro> getMacros()
Returns the currently enabled macros, excluding user macros. For a list of user macros, see UserMacroLibrary.


registerMacro

void registerMacro(java.lang.String name,
                   com.atlassian.renderer.v2.macro.Macro macro)
Registers a new macro with the given name. If a macro already exists with that name, it is replaced by the new macro.

Parameters:
name - the name to register the macro under. For example, 'code'.
macro - the macro to register

unregisterMacro

void unregisterMacro(java.lang.String name)
Unregisters the macro with the given name. Does nothing if no such macro is registered.

Parameters:
name - the name of the macro to unregister. For example, 'code'.


Copyright © 2003-2014 Atlassian. All Rights Reserved.