com.atlassian.jira.plugins.mail.extensions
Class MessageHandlerModuleDescriptor

java.lang.Object
  extended by com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
      extended by com.atlassian.jira.plugin.AbstractJiraModuleDescriptor<MessageHandler>
          extended by com.atlassian.jira.plugins.mail.extensions.MessageHandlerModuleDescriptor
All Implemented Interfaces:
JiraResourcedModuleDescriptor<MessageHandler>, com.atlassian.plugin.ModuleDescriptor<MessageHandler>, com.atlassian.plugin.Resourced, com.atlassian.plugin.StateAware

public class MessageHandlerModuleDescriptor
extends AbstractJiraModuleDescriptor<MessageHandler>
implements com.atlassian.plugin.StateAware


Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.AbstractJiraModuleDescriptor
RESOURCE_TYPE_I18N
 
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
moduleClass, moduleClassName, plugin, resources, singleton
 
Constructor Summary
MessageHandlerModuleDescriptor(JiraAuthenticationContext authenticationContext, com.atlassian.plugin.module.ModuleFactory moduleFactory)
           
 
Method Summary
 void disabled()
           
 void enabled()
           
 String getAddEditUrl()
           
protected  ComponentClassManager getComponentClassManager()
           
 Class<? extends MessageHandler> getMessageHandler()
           
 MessageHandlerValidator getValidator()
           
 int getWeight()
           
 void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element)
           
 
Methods inherited from class com.atlassian.jira.plugin.AbstractJiraModuleDescriptor
assertResourceExists, createModule, createVelocityParams, getAuthenticationContext, getClassLoader, getDescription, getHtml, getHtml, getI18nBean, getModule, getName, getText, getText, isResourceExist
 
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, destroy, equals, getCompleteKey, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.plugin.ModuleDescriptor
destroy, equals, getCompleteKey, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getParams, getPlugin, getPluginKey, hashCode, isEnabledByDefault, isSystemModule, satisfiesMinJavaVersion
 
Methods inherited from interface com.atlassian.plugin.Resourced
getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation
 

Constructor Detail

MessageHandlerModuleDescriptor

public MessageHandlerModuleDescriptor(JiraAuthenticationContext authenticationContext,
                                      com.atlassian.plugin.module.ModuleFactory moduleFactory)
Method Detail

getComponentClassManager

@Nonnull
protected ComponentClassManager getComponentClassManager()

enabled

public void enabled()
Specified by:
enabled in interface com.atlassian.plugin.StateAware
Overrides:
enabled in class AbstractJiraModuleDescriptor<MessageHandler>

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<MessageHandler>
Overrides:
init in class AbstractJiraModuleDescriptor<MessageHandler>
Throws:
com.atlassian.plugin.PluginParseException

disabled

public void disabled()
Specified by:
disabled in interface com.atlassian.plugin.StateAware
Overrides:
disabled in class AbstractJiraModuleDescriptor<MessageHandler>

getMessageHandler

public Class<? extends MessageHandler> getMessageHandler()

getValidator

@Nullable
public MessageHandlerValidator getValidator()
Returns:
an optional validator which instance is instatiated with dependency injection and which additionally check whether given handler is valid for the current settings Validator should be state-less, as there is only single instance created for given plugin module declaration

getAddEditUrl

public String getAddEditUrl()

getWeight

public int getWeight()


Copyright © 2002-2012 Atlassian. All Rights Reserved.