Class MockModuleDescriptor<T>
java.lang.Object
com.atlassian.jira.mock.plugin.MockModuleDescriptor<T>
- All Implemented Interfaces:
com.atlassian.plugin.ModuleDescriptor<T>, com.atlassian.plugin.Resourced, com.atlassian.plugin.ScopeAware
- Direct Known Subclasses:
MockJiraResourcedModuleDescriptor, NullModuleDescriptor
public abstract class MockModuleDescriptor<T>
extends Object
implements com.atlassian.plugin.ModuleDescriptor<T>
- Since:
- v6.2.3
-
Constructor Summary
ConstructorsConstructorDescriptionMockModuleDescriptor(Class<T> type) MockModuleDescriptor(Class<T> type, com.atlassian.plugin.Plugin plugin, String key) -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.plugin.elements.ResourceDescriptorcreateHelpResource(String name, String location) com.atlassian.plugin.elements.ResourceDescriptorcreateI18nResource(String name, String location) voiddestroy()getKey()getName()com.atlassian.plugin.Plugincom.atlassian.plugin.elements.ResourceDescriptorgetResourceDescriptor(String type, String name) List<com.atlassian.plugin.elements.ResourceDescriptor> com.atlassian.plugin.elements.ResourceLocationgetResourceLocation(String type, String name) voidinit(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) booleanbooleanbooleanvoidvoidsetPlugin(com.atlassian.plugin.Plugin plugin) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.plugin.ModuleDescriptor
equals, getDisplayName, getModule, hashCode, isBroken, isEnabled, setBrokenMethods inherited from interface com.atlassian.plugin.ScopeAware
getScopeKey
-
Constructor Details
-
MockModuleDescriptor
-
MockModuleDescriptor
-
-
Method Details
-
setKey
-
setPlugin
public void setPlugin(com.atlassian.plugin.Plugin plugin) -
getCompleteKey
-
getPluginKey
-
getKey
-
getName
-
getDescription
-
getModuleClass
-
init
public void init(@Nonnull com.atlassian.plugin.Plugin plugin, @Nonnull com.atlassian.plugin.module.Element element) - Specified by:
initin interfacecom.atlassian.plugin.ModuleDescriptor<T>
-
isEnabledByDefault
public boolean isEnabledByDefault()- Specified by:
isEnabledByDefaultin interfacecom.atlassian.plugin.ModuleDescriptor<T>
-
isSystemModule
public boolean isSystemModule()- Specified by:
isSystemModulein interfacecom.atlassian.plugin.ModuleDescriptor<T>
-
destroy
public void destroy()- Specified by:
destroyin interfacecom.atlassian.plugin.ModuleDescriptor<T>
-
getMinJavaVersion
-
satisfiesMinJavaVersion
public boolean satisfiesMinJavaVersion()- Specified by:
satisfiesMinJavaVersionin interfacecom.atlassian.plugin.ModuleDescriptor<T>
-
getParams
-
getI18nNameKey
-
getDescriptionKey
-
getPlugin
public com.atlassian.plugin.Plugin getPlugin()- Specified by:
getPluginin interfacecom.atlassian.plugin.ModuleDescriptor<T>
-
getResourceDescriptors
- Specified by:
getResourceDescriptorsin interfacecom.atlassian.plugin.Resourced
-
getResourceDescriptor
-
getResourceLocation
-
createI18nResource
-
createHelpResource
-