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 whichSshCommandFactory
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 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
ConstructorDescriptionSshCommandFactoryModuleDescriptor
(com.atlassian.plugin.module.ModuleFactory moduleFactory) -
Method Summary
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
-
XML_ELEMENT_NAME
- See Also:
-
-
Constructor Details
-
SshCommandFactoryModuleDescriptor
public SshCommandFactoryModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
-
-
Method Details
-
getModule
- Specified by:
getModule
in interfacecom.atlassian.plugin.ModuleDescriptor<SshCommandFactory>
- Specified by:
getModule
in classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<SshCommandFactory>
-