com.atlassian.confluence.plugin.descriptor
Class CustomMacroModuleDescriptor

java.lang.Object
  extended by com.atlassian.plugin.descriptors.AbstractModuleDescriptor
      extended by com.atlassian.confluence.plugin.descriptor.ConfluenceVelocityModuleDescriptor
          extended by com.atlassian.confluence.plugin.descriptor.CustomMacroModuleDescriptor
All Implemented Interfaces:
MacroModuleDescriptor, PluginModuleFactory<com.atlassian.renderer.v2.macro.Macro>, UserLocaleAware, com.atlassian.plugin.ModuleDescriptor, com.atlassian.plugin.Resourced, com.atlassian.plugin.StateAware, org.springframework.context.ApplicationContextAware

public class CustomMacroModuleDescriptor
extends ConfluenceVelocityModuleDescriptor
implements MacroModuleDescriptor, org.springframework.context.ApplicationContextAware, PluginModuleFactory<com.atlassian.renderer.v2.macro.Macro>


Field Summary
 
Fields inherited from class com.atlassian.confluence.plugin.descriptor.ConfluenceVelocityModuleDescriptor
i18NBeanFactory, localeManager, RESOURCE_TYPE_I18N
 
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
plugin, resources, singleton
 
Constructor Summary
CustomMacroModuleDescriptor()
           
 
Method Summary
 com.atlassian.renderer.v2.macro.Macro createModule()
           
 void disabled()
           
 void enabled()
           
 java.lang.String getHelp()
           
 java.lang.String getHelpSection()
           
 java.lang.Object getModule()
           
 boolean hasHelp()
           
 void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class com.atlassian.confluence.plugin.descriptor.ConfluenceVelocityModuleDescriptor
getHtml, getHtml, setI18NBeanFactory, setLocaleManager
 
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, destroy, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, satisfiesMinJavaVersion, setPlugin, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.plugin.ModuleDescriptor
destroy, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, isEnabledByDefault, isSystemModule, satisfiesMinJavaVersion
 
Methods inherited from interface com.atlassian.plugin.Resourced
getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation
 

Constructor Detail

CustomMacroModuleDescriptor

public CustomMacroModuleDescriptor()
Method Detail

init

public void init(com.atlassian.plugin.Plugin plugin,
                 org.dom4j.Element element)
          throws com.atlassian.plugin.PluginParseException
Specified by:
init in interface com.atlassian.plugin.ModuleDescriptor
Overrides:
init in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
Throws:
com.atlassian.plugin.PluginParseException

getModule

public java.lang.Object getModule()
Specified by:
getModule in interface com.atlassian.plugin.ModuleDescriptor
Specified by:
getModule in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor

createModule

public com.atlassian.renderer.v2.macro.Macro createModule()
Specified by:
createModule in interface PluginModuleFactory<com.atlassian.renderer.v2.macro.Macro>

enabled

public void enabled()
Specified by:
enabled in interface com.atlassian.plugin.StateAware
Overrides:
enabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor

disabled

public void disabled()
Specified by:
disabled in interface com.atlassian.plugin.StateAware
Overrides:
disabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor

hasHelp

public boolean hasHelp()

getHelpSection

public java.lang.String getHelpSection()

getHelp

public java.lang.String getHelp()

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.