Package com.atlassian.bitbucket.scm
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
ConstructorDescriptionBaseWeightedModuleDescriptor
(com.atlassian.plugin.module.ModuleFactory moduleFactory, int defaultWeight) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(BaseWeightedModuleDescriptor<T> otherDescriptor) 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
- Specified by:
compareTo
in interfaceComparable<T>
-
getWeight
public int getWeight() -
init
public void init(@Nonnull com.atlassian.plugin.Plugin plugin, @Nonnull com.atlassian.plugin.module.Element element) throws com.atlassian.plugin.PluginParseException
-