com.atlassian.jira.plugin
Class JiraResourcedModuleDescriptor

java.lang.Object
  extended by com.atlassian.plugin.descriptors.AbstractModuleDescriptor
      extended by com.atlassian.jira.plugin.JiraResourcedModuleDescriptor
All Implemented Interfaces:
com.atlassian.plugin.ModuleDescriptor, com.atlassian.plugin.Resourced
Direct Known Subclasses:
AbstractTabPanelModuleDescriptor, AbstractWorkflowModuleDescriptor, ConfigurableModuleDescriptor, ContentLinkResolverDescriptor, CustomFieldSearcherModuleDescriptor, CustomFieldTypeModuleDescriptor, FooterModuleDescriptor, IssueOperationModuleDescriptor, IssueTabPanelModuleDescriptor, IssueViewModuleDescriptor, JiraRendererModuleDescriptor, MacroModuleDescriptor, ProjectOperationModuleDescriptor, ProjectRoleActorModuleDescriptor, RendererComponentFactoryDescriptor, SearchRequestViewModuleDescriptor, TopNavigationModuleDescriptor, UserFormatModuleDescriptor, ViewProfilePanelModuleDescriptor, WebworkModuleDescriptor

public abstract class JiraResourcedModuleDescriptor
extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor


Field Summary
static String RESOURCE_TYPE_I18N
           
 
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
plugin, resources, singleton
 
Constructor Summary
protected JiraResourcedModuleDescriptor(JiraAuthenticationContext authenticationContext)
           
 
Method Summary
protected  void assertResourceExists(String type, String name)
           
protected  Map createVelocityParams(Map startingParams)
           
protected  JiraAuthenticationContext getAuthenticationContext()
           
protected  ClassLoader getClassLoader()
           
 String getDescription()
           
 String getHtml(String resourceName)
           
 String getHtml(String resourceName, Map startingParams)
           
 I18nBean getI18nBean()
           
protected  List getI18nLocations()
           
 String getName()
           
 String getText(String key)
          Deprecated. Please use i18nBean.getText() instead
 String getText(String key, Object params)
           
 void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element)
           
protected  boolean isResourceExist(String resourceName)
           
 
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, destroy, getCompleteKey, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModule, getModuleClass, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, satisfiesMinJavaVersion, setPlugin, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE_TYPE_I18N

public static final String RESOURCE_TYPE_I18N
See Also:
Constant Field Values
Constructor Detail

JiraResourcedModuleDescriptor

protected JiraResourcedModuleDescriptor(JiraAuthenticationContext authenticationContext)
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

assertResourceExists

protected void assertResourceExists(String type,
                                    String name)
                             throws com.atlassian.plugin.PluginParseException
Throws:
com.atlassian.plugin.PluginParseException

getHtml

public String getHtml(String resourceName)

getHtml

public String getHtml(String resourceName,
                      Map startingParams)

getDescription

public String getDescription()
Specified by:
getDescription in interface com.atlassian.plugin.ModuleDescriptor
Overrides:
getDescription in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor

getName

public String getName()
Specified by:
getName in interface com.atlassian.plugin.ModuleDescriptor
Overrides:
getName in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor

getAuthenticationContext

protected JiraAuthenticationContext getAuthenticationContext()

getText

public String getText(String key)
Deprecated. Please use i18nBean.getText() instead


getText

public String getText(String key,
                      Object params)

getI18nLocations

protected List getI18nLocations()

getI18nBean

public I18nBean getI18nBean()

createVelocityParams

protected Map createVelocityParams(Map startingParams)

isResourceExist

protected boolean isResourceExist(String resourceName)

getClassLoader

protected ClassLoader getClassLoader()


Copyright © 2002-2009 Atlassian. All Rights Reserved.