Class SshCommandFactoryModuleDescriptor

java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.bitbucket.scm.BaseWeightedModuleDescriptor<SshCommandFactory>
com.atlassian.bitbucket.ssh.command.SshCommandFactoryModuleDescriptor
All Implemented Interfaces:
Weighted, com.atlassian.plugin.ModuleDescriptor<SshCommandFactory>, com.atlassian.plugin.Resourced, com.atlassian.plugin.ScopeAware, com.atlassian.plugin.StateAware, Comparable<BaseWeightedModuleDescriptor<SshCommandFactory>>

public class SshCommandFactoryModuleDescriptor extends BaseWeightedModuleDescriptor<SshCommandFactory>
Module descriptor for providing SshCommandFactory implementations.

Usage:


     <ssh-command-factory
              key="whoSshCommandFactory"
              class="com.example.ssh.WhoSshCommandFactory"
              weight="100"/>
 
The key and class attributes are required. The weight attribute is optional.
  • weight: Defines the order in which SshCommandFactory implementations will be queried. Lower weights are queried earlier and the default weight is 100. The first implementation that supports a given command will be used
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    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
    SshCommandFactoryModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class com.atlassian.bitbucket.scm.BaseWeightedModuleDescriptor

    compareTo, getWeight, init

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

    assertModuleClassImplements, checkPermissions, destroy, disabled, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, 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
  • Field Details

  • Constructor Details

    • SshCommandFactoryModuleDescriptor

      public SshCommandFactoryModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
  • Method Details

    • getModule

      public SshCommandFactory getModule()
      Specified by:
      getModule in interface com.atlassian.plugin.ModuleDescriptor<SshCommandFactory>
      Specified by:
      getModule in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<SshCommandFactory>