Class BaseWeightedModuleDescriptor<T>

java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.bitbucket.scm.BaseWeightedModuleDescriptor<T>
All Implemented Interfaces:
Weighted, com.atlassian.plugin.ModuleDescriptor<T>, com.atlassian.plugin.Resourced, com.atlassian.plugin.ScopeAware, com.atlassian.plugin.StateAware, Comparable<BaseWeightedModuleDescriptor<T>>
Direct Known Subclasses:
AbstractScmRequestHandlerModuleDescriptor, BaseScmHookModuleDescriptor, CommitPropertyConfigurationModuleDescriptor, HomeUpdateHandlerModuleDescriptor, HttpAuthenticationFailureHandlerModuleDescriptor, HttpAuthenticationHandlerModuleDescriptor, HttpAuthenticationSuccessHandlerModuleDescriptor, MigrationHandlerModuleDescriptor, ScmModuleDescriptor, ScmRequestCheckModuleDescriptor, SshAuthenticationFailureHandlerModuleDescriptor, SshAuthenticationHandlerModuleDescriptor, SshAuthenticationSuccessHandlerModuleDescriptor, SshCommandFactoryModuleDescriptor, UserErasureModuleDescriptor

public abstract class BaseWeightedModuleDescriptor<T> extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T> implements Weighted, Comparable<BaseWeightedModuleDescriptor<T>>
  • Field Summary

    Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor

    key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources

    Fields inherited from interface com.atlassian.bitbucket.util.Weighted

    COMPARABLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    BaseWeightedModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory, int defaultWeight)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
     
    void
    init(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element)
     

    Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor

    assertModuleClassImplements, checkPermissions, destroy, disabled, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModule, getModuleClass, getModuleClassName, getName, 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.plugin.ModuleDescriptor

    getDisplayName
  • Constructor Details

    • BaseWeightedModuleDescriptor

      public BaseWeightedModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory, int defaultWeight)
  • Method Details

    • compareTo

      public int compareTo(@Nonnull BaseWeightedModuleDescriptor<T> otherDescriptor)
      Specified by:
      compareTo in interface Comparable<T>
    • getWeight

      public int getWeight()
      Specified by:
      getWeight in interface Weighted
      Returns:
      the weight of this item (lower weight first, higher weight lower)
    • init

      public void init(@Nonnull com.atlassian.plugin.Plugin plugin, @Nonnull com.atlassian.plugin.module.Element element) throws com.atlassian.plugin.PluginParseException
      Specified by:
      init in interface com.atlassian.plugin.ModuleDescriptor<T>
      Overrides:
      init in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
      Throws:
      com.atlassian.plugin.PluginParseException