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 Details

    • MockModuleDescriptor

      public MockModuleDescriptor(Class<T> type, com.atlassian.plugin.Plugin plugin, String key)
    • MockModuleDescriptor

      public MockModuleDescriptor(Class<T> type)
  • Method Details

    • setKey

      public void setKey(String key)
    • setPlugin

      public void setPlugin(com.atlassian.plugin.Plugin plugin)
    • getCompleteKey

      public String getCompleteKey()
      Specified by:
      getCompleteKey in interface com.atlassian.plugin.ModuleDescriptor<T>
    • getPluginKey

      public String getPluginKey()
      Specified by:
      getPluginKey in interface com.atlassian.plugin.ModuleDescriptor<T>
    • getKey

      public String getKey()
      Specified by:
      getKey in interface com.atlassian.plugin.ModuleDescriptor<T>
    • getName

      public String getName()
      Specified by:
      getName in interface com.atlassian.plugin.ModuleDescriptor<T>
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface com.atlassian.plugin.ModuleDescriptor<T>
    • getModuleClass

      public Class<T> getModuleClass()
      Specified by:
      getModuleClass in interface com.atlassian.plugin.ModuleDescriptor<T>
    • init

      public void init(@Nonnull com.atlassian.plugin.Plugin plugin, @Nonnull com.atlassian.plugin.module.Element element)
      Specified by:
      init in interface com.atlassian.plugin.ModuleDescriptor<T>
    • isEnabledByDefault

      public boolean isEnabledByDefault()
      Specified by:
      isEnabledByDefault in interface com.atlassian.plugin.ModuleDescriptor<T>
    • isSystemModule

      public boolean isSystemModule()
      Specified by:
      isSystemModule in interface com.atlassian.plugin.ModuleDescriptor<T>
    • destroy

      public void destroy()
      Specified by:
      destroy in interface com.atlassian.plugin.ModuleDescriptor<T>
    • getMinJavaVersion

      public Float getMinJavaVersion()
      Specified by:
      getMinJavaVersion in interface com.atlassian.plugin.ModuleDescriptor<T>
    • satisfiesMinJavaVersion

      public boolean satisfiesMinJavaVersion()
      Specified by:
      satisfiesMinJavaVersion in interface com.atlassian.plugin.ModuleDescriptor<T>
    • getParams

      public Map<String,String> getParams()
      Specified by:
      getParams in interface com.atlassian.plugin.ModuleDescriptor<T>
    • getI18nNameKey

      public String getI18nNameKey()
      Specified by:
      getI18nNameKey in interface com.atlassian.plugin.ModuleDescriptor<T>
    • getDescriptionKey

      public String getDescriptionKey()
      Specified by:
      getDescriptionKey in interface com.atlassian.plugin.ModuleDescriptor<T>
    • getPlugin

      public com.atlassian.plugin.Plugin getPlugin()
      Specified by:
      getPlugin in interface com.atlassian.plugin.ModuleDescriptor<T>
    • getResourceDescriptors

      public List<com.atlassian.plugin.elements.ResourceDescriptor> getResourceDescriptors()
      Specified by:
      getResourceDescriptors in interface com.atlassian.plugin.Resourced
    • getResourceDescriptor

      public com.atlassian.plugin.elements.ResourceDescriptor getResourceDescriptor(String type, String name)
      Specified by:
      getResourceDescriptor in interface com.atlassian.plugin.Resourced
    • getResourceLocation

      public com.atlassian.plugin.elements.ResourceLocation getResourceLocation(String type, String name)
      Specified by:
      getResourceLocation in interface com.atlassian.plugin.Resourced
    • createI18nResource

      public com.atlassian.plugin.elements.ResourceDescriptor createI18nResource(String name, String location)
    • createHelpResource

      public com.atlassian.plugin.elements.ResourceDescriptor createHelpResource(String name, String location)