java.lang.Object | |
↳ | com.atlassian.confluence.macro.xhtml.XhtmlMacroManager |
Listens for com.atlassian.plugin.event.events.PluginModuleEnabledEvent and com.atlassian.plugin.event.events.PluginModuleDisabledEvent
to register Macro
s with itself.
All macros will be wrapped in a LazyLoadingMacroWrapper
and will have their resource path set
if they are ResourceAware
. If they are not ResourceAware
then they will be wrapped in a dynamic proxy that does implement the interface (and the path will be set).
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | RESOURCE_PREFIX |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Macros are lazy loaded to avoid plugin module ordering problems like CONF-13386.
| |||||||||||
Gives the
Macro registered with the
given name, or null if there is none registered with the manager. | |||||||||||
Registers a new macro with the given name.
| |||||||||||
Unregisters the macro with the given name.
| |||||||||||
Unwraps a macro proxy that is wrapped with a ResourceAwareMacroInvocationHandler.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.confluence.macro.xhtml.MacroManager
|
Macros are lazy loaded to avoid plugin module ordering problems like CONF-13386.
moduleDescriptor | describes the macro we are creating a lazy reference to. |
---|
Gives the Macro
registered with the
given name, or null if there is none registered with the manager.
macroName | The macro to get. |
---|
Registers a new macro with the given name. If a macro already exists with that name, it is replaced by the new macro.
name | the name to register the macro under. For example, 'code'. |
---|---|
macro | the macro to register |
Unregisters the macro with the given name. Does nothing if no such macro is registered.
name | the name of the macro to unregister. For example, 'code'. |
---|
Unwraps a macro proxy that is wrapped with a ResourceAwareMacroInvocationHandler. If the macro is not proxied with this invocation handler then the passed in proxy is returned.
proxy | The proxy to unwrap |
---|