Class TriggerModuleDescriptorImpl
- java.lang.Object
-
- com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
-
- com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor<TriggerActivator>
-
- com.atlassian.bamboo.plugin.descriptor.TriggerModuleDescriptorImpl
-
- All Implemented Interfaces:
TriggerModuleDescriptor,NameProvider,com.atlassian.plugin.ModuleDescriptor<TriggerActivator>,com.atlassian.plugin.Resourced,com.atlassian.plugin.ScopeAware,com.atlassian.plugin.StateAware,Serializable
public final class TriggerModuleDescriptorImpl extends AbstractBambooModuleDescriptor<TriggerActivator> implements TriggerModuleDescriptor, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TriggerModuleDescriptorImpl(com.atlassian.plugin.module.ModuleFactory moduleFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanTrigger(@NotNull Triggerable triggerable)booleancanTriggerType(@NotNull Class<? extends Triggerable> triggerableType)voiddisabled()voidenabled()@Nullable StringgetIconUrl()@Nullable TriggerConfiguratorgetTriggerConfigurator()Retrieves the plugin class responsible for handling user configuration of this plugin.@Nullable TriggerDefinitionExportergetTriggerExporter()Retrieves the plugin class responsible for exporting of user configuration of this plugin.voidinit(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element)protected booleanisMutable()Whether modules of this descriptor are supposed to be mutated by external components.booleanrequiresChangeDetectionOnCompletion()-
Methods inherited from class com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor
getElementAsString, getFreeMarkerResourceLocation, getModule, getVelocityResourceLocation, instantiateClass, instantiateSubmodule, postInit, preInit
-
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.plugin.ModuleDescriptor
destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getDisplayName, getI18nNameKey, getKey, getMinJavaVersion, getModule, getModuleClass, getName, getParams, getPlugin, getPluginKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, satisfiesMinJavaVersion, setBroken
-
Methods inherited from interface com.atlassian.bamboo.utils.NameProvider
getName
-
-
-
-
Method Detail
-
init
public void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element) throws com.atlassian.plugin.PluginParseException- Specified by:
initin interfacecom.atlassian.plugin.ModuleDescriptor<TriggerActivator>- Overrides:
initin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<TriggerActivator>- Throws:
com.atlassian.plugin.PluginParseException
-
isMutable
protected boolean isMutable()
Description copied from class:AbstractBambooModuleDescriptorWhether modules of this descriptor are supposed to be mutated by external components. By default this returnstrue, which means a fresh module instance will be created each timeAbstractBambooModuleDescriptor.getModule()is called.Subclasses that are safe to cache a singleton instance of module throughout the life span of this descriptor can override this method and return
false.- Overrides:
isMutablein classAbstractBambooModuleDescriptor<TriggerActivator>- Returns:
trueif modules of this descriptor are mutable
-
disabled
public void disabled()
- Specified by:
disabledin interfacecom.atlassian.plugin.StateAware- Overrides:
disabledin classAbstractBambooModuleDescriptor<TriggerActivator>
-
enabled
public void enabled()
- Specified by:
enabledin interfacecom.atlassian.plugin.StateAware- Overrides:
enabledin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<TriggerActivator>
-
getIconUrl
@Nullable public @Nullable String getIconUrl()
- Specified by:
getIconUrlin interfaceTriggerModuleDescriptor
-
canTrigger
public boolean canTrigger(@NotNull @NotNull Triggerable triggerable)- Specified by:
canTriggerin interfaceTriggerModuleDescriptor- Returns:
- true iff build strategy is applicable to a Triggerable
-
canTriggerType
public boolean canTriggerType(@NotNull @NotNull Class<? extends Triggerable> triggerableType)- Specified by:
canTriggerTypein interfaceTriggerModuleDescriptor- Returns:
- true iff build strategy is applicable to a Triggerable of given type
-
requiresChangeDetectionOnCompletion
public boolean requiresChangeDetectionOnCompletion()
- Specified by:
requiresChangeDetectionOnCompletionin interfaceTriggerModuleDescriptor- Returns:
- true iff plan executions with this trigger available should result in an extra change detection being performed. This is helpful for triggers that might be lost due to concurrency constraints and have no other fallback.
-
getTriggerConfigurator
@Nullable public @Nullable TriggerConfigurator getTriggerConfigurator()
Description copied from interface:TriggerModuleDescriptorRetrieves the plugin class responsible for handling user configuration of this plugin.- Specified by:
getTriggerConfiguratorin interfaceTriggerModuleDescriptor- Returns:
TriggerConfiguratorfor this ModuleDescriptor
-
getTriggerExporter
@Nullable public @Nullable TriggerDefinitionExporter getTriggerExporter()
Description copied from interface:TriggerModuleDescriptorRetrieves the plugin class responsible for exporting of user configuration of this plugin.- Specified by:
getTriggerExporterin interfaceTriggerModuleDescriptor- Returns:
TriggerDefinitionExporterfor this ModuleDescriptor
-
-