Class UserMacroModuleDescriptor
- java.lang.Object
-
- com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Macro>
-
- com.atlassian.confluence.plugin.descriptor.UserMacroModuleDescriptor
-
- All Implemented Interfaces:
MacroMetadataSource
,PluginModuleFactory<Macro>
,com.atlassian.plugin.ModuleDescriptor<Macro>
,com.atlassian.plugin.Resourced
,com.atlassian.plugin.ScopeAware
,com.atlassian.plugin.StateAware
public final class UserMacroModuleDescriptor extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Macro> implements PluginModuleFactory<Macro>, MacroMetadataSource
Allows simple macros to be defined inline
-
-
Constructor Summary
Constructors Constructor Description UserMacroModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory, MacroMetadataParser macroMetadataParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Macro
createModule()
void
disabled()
void
enabled()
MacroMetadata
getMacroMetadata()
Macro
getModule()
UserMacroConfig
getUserMacroConfig()
void
init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element)
-
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin, toString
-
-
-
-
Constructor Detail
-
UserMacroModuleDescriptor
public UserMacroModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory, MacroMetadataParser macroMetadataParser)
-
-
Method Detail
-
init
public void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element) throws com.atlassian.plugin.PluginParseException
-
getUserMacroConfig
public UserMacroConfig getUserMacroConfig()
-
getMacroMetadata
public MacroMetadata getMacroMetadata()
- Specified by:
getMacroMetadata
in interfaceMacroMetadataSource
-
createModule
public Macro createModule()
- Specified by:
createModule
in interfacePluginModuleFactory<Macro>
-
getModule
public Macro getModule()
-
enabled
public void enabled()
- Specified by:
enabled
in interfacecom.atlassian.plugin.StateAware
- Overrides:
enabled
in classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<Macro>
-
disabled
public void disabled()
- Specified by:
disabled
in interfacecom.atlassian.plugin.StateAware
- Overrides:
disabled
in classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<Macro>
-
-