Package com.atlassian.bitbucket.scm
Class ScmRequestCheckModuleDescriptor
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.bitbucket.scm.BaseWeightedModuleDescriptor<ScmRequestCheck>
com.atlassian.bitbucket.scm.ScmRequestCheckModuleDescriptor
- All Implemented Interfaces:
Weighted,com.atlassian.plugin.ModuleDescriptor<ScmRequestCheck>,com.atlassian.plugin.Resourced,com.atlassian.plugin.ScopeAware,com.atlassian.plugin.StateAware,Comparable<BaseWeightedModuleDescriptor<ScmRequestCheck>>
Provides an
ScmRequestCheck implementation used by the ScmRequestCheckService.
Usage example:
<scm-request-check
key="throttleCheck"
class="com.atlassian.bitbucket.internal.scm.check.ThrottleCheck"
weight="20" />
The (optional) weight attribute defines the order in which ScmRequestCheck implementations will be queried.
Lower weights are queried earlier and the default weight is 10. If an earlier ScmRequestCheck vetoes an
ScmRequest subsequent checks will not be called.
-
Field Summary
FieldsFields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resourcesFields inherited from interface com.atlassian.bitbucket.util.Weighted
COMPARABLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScmRequestCheckModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvalidate(com.atlassian.plugin.module.Element element) Methods inherited from class com.atlassian.bitbucket.scm.BaseWeightedModuleDescriptor
compareTo, getWeight, initMethods 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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.plugin.ModuleDescriptor
getDisplayName
-
Field Details
-
XML_ELEMENT_NAME
- See Also:
-
-
Constructor Details
-
ScmRequestCheckModuleDescriptor
protected ScmRequestCheckModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
-
-
Method Details
-
validate
protected void validate(com.atlassian.plugin.module.Element element) - Overrides:
validatein classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<ScmRequestCheck>
-
getModule
- Specified by:
getModulein interfacecom.atlassian.plugin.ModuleDescriptor<ScmRequestCheck>- Specified by:
getModulein classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<ScmRequestCheck>
-