Class LanguageModuleDescriptorImpl
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Language>
com.atlassian.jira.plugin.AbstractJiraModuleDescriptor<Language>
com.atlassian.jira.plugin.language.LanguageModuleDescriptorImpl
- All Implemented Interfaces:
JiraResourcedModuleDescriptor<Language>
,LanguageModuleDescriptor
,com.atlassian.plugin.ModuleDescriptor<Language>
,com.atlassian.plugin.Resourced
,com.atlassian.plugin.ScopeAware
,com.atlassian.plugin.StateAware
public class LanguageModuleDescriptorImpl
extends AbstractJiraModuleDescriptor<Language>
implements LanguageModuleDescriptor
Module descriptor of the language pack plugin point.
- Since:
- 4.3 and better
-
Field Summary
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources
-
Constructor Summary
ConstructorsConstructorDescriptionLanguageModuleDescriptorImpl
(JiraAuthenticationContext authenticationContext, com.atlassian.plugin.module.ModuleFactory moduleFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected Language
Creates an instance of the Module.void
init
(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) Initialises the LanguageModuleDescriptorvoid
setCountry
(String country) void
setEncoding
(String encoding) void
setLanguage
(String language) void
setVariant
(String variant) Methods inherited from class com.atlassian.jira.plugin.AbstractJiraModuleDescriptor
assertResourceExists, createVelocityParams, disabled, enabled, getAuthenticationContext, getClassLoader, getDescription, getHtml, getHtml, getI18nBean, getModule, getName, getText, getText, isResourceExist, writeHtml
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, destroy, equals, getCompleteKey, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, satisfiesMinJavaVersion, setBroken, setPlugin, toString, validate
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.jira.plugin.JiraResourcedModuleDescriptor
getHtml, getHtml, getI18nBean, writeHtml
Methods inherited from interface com.atlassian.plugin.ModuleDescriptor
destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getDisplayName, getI18nNameKey, getKey, getMinJavaVersion, getModule, getModuleClass, getName, getParams, getPlugin, getPluginKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, satisfiesMinJavaVersion, setBroken
Methods inherited from interface com.atlassian.plugin.Resourced
getResourceDescriptor, getResourceDescriptors, getResourceLocation
Methods inherited from interface com.atlassian.plugin.ScopeAware
getScopeKey
-
Constructor Details
-
LanguageModuleDescriptorImpl
public LanguageModuleDescriptorImpl(JiraAuthenticationContext authenticationContext, com.atlassian.plugin.module.ModuleFactory moduleFactory)
-
-
Method Details
-
init
public void init(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) throws com.atlassian.plugin.PluginParseException Initialises the LanguageModuleDescriptor- Specified by:
init
in interfacecom.atlassian.plugin.ModuleDescriptor<Language>
- Overrides:
init
in classAbstractJiraModuleDescriptor<Language>
- Parameters:
plugin
- The Plugin the ModuleDescriptor belongs toelement
- The XML Document to be parsed- Throws:
com.atlassian.plugin.PluginParseException
- if language is null
-
createModule
Description copied from class:AbstractJiraModuleDescriptor
Creates an instance of the Module.This is called by the lazy load logic of getModule() and is suitable for overriding in subclasses if they want to customize how the Module class is instantiated.
- Overrides:
createModule
in classAbstractJiraModuleDescriptor<Language>
- Returns:
- a new instance of the module.
-
getResourceBundleName
- Specified by:
getResourceBundleName
in interfaceLanguageModuleDescriptor
-
getEncoding
- Specified by:
getEncoding
in interfaceLanguageModuleDescriptor
-
setEncoding
- Specified by:
setEncoding
in interfaceLanguageModuleDescriptor
-
getLanguage
- Specified by:
getLanguage
in interfaceLanguageModuleDescriptor
-
setLanguage
- Specified by:
setLanguage
in interfaceLanguageModuleDescriptor
-
getCountry
- Specified by:
getCountry
in interfaceLanguageModuleDescriptor
-
setCountry
- Specified by:
setCountry
in interfaceLanguageModuleDescriptor
-
getVariant
- Specified by:
getVariant
in interfaceLanguageModuleDescriptor
-
setVariant
- Specified by:
setVariant
in interfaceLanguageModuleDescriptor
-