Class TaskModuleDescriptorImpl
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor<InternalTaskType>
com.atlassian.bamboo.plugin.descriptor.TaskModuleDescriptorImpl
- All Implemented Interfaces:
TaskModuleDescriptor
,NameProvider
,com.atlassian.plugin.ModuleDescriptor<InternalTaskType>
,com.atlassian.plugin.Resourced
,com.atlassian.plugin.ScopeAware
,com.atlassian.plugin.StateAware
,Serializable
public final class TaskModuleDescriptorImpl
extends AbstractBambooModuleDescriptor<InternalTaskType>
implements TaskModuleDescriptor, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor
AbstractBambooModuleDescriptor.ClassNameSource, AbstractBambooModuleDescriptor.ModuleAvailability
-
Field Summary
Fields inherited from class com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor
CLASS
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources
-
Constructor Summary
ConstructorDescriptionTaskModuleDescriptorImpl
(com.atlassian.plugin.module.ModuleFactory moduleFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
disabled()
Retrieves the instance responsible for detecting the defaultCapability
s of this plugin@NotNull List<TaskCategory>
@Nullable TaskHelpLink
TaskHelpLink objects contain the i18n keys which can be used to find help urls for tasks and their corresponding titles.@Nullable String
URL to a two-times larger version of theicon
to be used in the task browser for screens with high resolution.@Nullable String
URL to the icon to be used in the Task browser@Nullable RuntimeTaskDataProvider
Optional server side component allowing inject runtime parameters for task@Nullable TaskBackgroundProcessor
Optional agent side components allowing additional processing happening before and after the build.@Nullable TaskConfigurator
Retrieves the plugin class responsible fo handling user configuration of this plugin.@NotNull List<TaskExecutableType>
@NotNull TaskDefinitionExporter
Retrieves the plugin class responsible for exporting of user configuration of this plugin.void
init
(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) Methods inherited from class com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor
getElementAsString, getFreeMarkerResourceLocation, getModule, getVelocityResourceLocation, instantiateClass, instantiateSubmodule, isMutable, postInit, preInit, prepareSubModuleConfiguration, prepareSubModuleConfiguration
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, destroy, 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
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
Methods inherited from interface com.atlassian.plugin.Resourced
getResourceDescriptor, getResourceDescriptors, getResourceLocation
Methods inherited from interface com.atlassian.plugin.ScopeAware
getScopeKey
-
Field Details
-
PLUGIN_TYPE
- See Also:
-
-
Constructor Details
-
TaskModuleDescriptorImpl
public TaskModuleDescriptorImpl(com.atlassian.plugin.module.ModuleFactory moduleFactory)
-
-
Method Details
-
init
public void init(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) throws com.atlassian.plugin.PluginParseException - Specified by:
init
in interfacecom.atlassian.plugin.ModuleDescriptor<InternalTaskType>
- Overrides:
init
in classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<InternalTaskType>
- Throws:
com.atlassian.plugin.PluginParseException
-
disabled
public void disabled()- Specified by:
disabled
in interfacecom.atlassian.plugin.StateAware
- Overrides:
disabled
in classAbstractBambooModuleDescriptor<InternalTaskType>
-
getCapabilityDefaultsHelper
Description copied from interface:TaskModuleDescriptor
Retrieves the instance responsible for detecting the defaultCapability
s of this plugin- Specified by:
getCapabilityDefaultsHelper
in interfaceTaskModuleDescriptor
- Returns:
CapabilityDefaultsHelper
for thisTaskType
-
getTaskConfigurator
Description copied from interface:TaskModuleDescriptor
Retrieves the plugin class responsible fo handling user configuration of this plugin.- Specified by:
getTaskConfigurator
in interfaceTaskModuleDescriptor
- Returns:
TaskConfigurator
for this TaskType
-
getCategories
- Specified by:
getCategories
in interfaceTaskModuleDescriptor
- Returns:
- a list of
TaskCategory
s that this module belongs to
-
getTaskExecutables
- Specified by:
getTaskExecutables
in interfaceTaskModuleDescriptor
- Returns:
- details for
TaskType
executable
-
getIconUrl
Description copied from interface:TaskModuleDescriptor
URL to the icon to be used in the Task browser- Specified by:
getIconUrl
in interfaceTaskModuleDescriptor
- Returns:
- url to the resource named 'icon' with the type 'download'
-
getIcon2xUrl
Description copied from interface:TaskModuleDescriptor
URL to a two-times larger version of theicon
to be used in the task browser for screens with high resolution.- Specified by:
getIcon2xUrl
in interfaceTaskModuleDescriptor
- Returns:
- url to the resource named 'icon@2x' with the type 'download'
-
getHelpLink
Description copied from interface:TaskModuleDescriptor
TaskHelpLink objects contain the i18n keys which can be used to find help urls for tasks and their corresponding titles.- Specified by:
getHelpLink
in interfaceTaskModuleDescriptor
- Returns:
- TaskHelpLink object
-
getRuntimeTaskDataProvider
Description copied from interface:TaskModuleDescriptor
Optional server side component allowing inject runtime parameters for task- Specified by:
getRuntimeTaskDataProvider
in interfaceTaskModuleDescriptor
- Returns:
-
getTaskBackgroundProcessor
Description copied from interface:TaskModuleDescriptor
Optional agent side components allowing additional processing happening before and after the build.- Specified by:
getTaskBackgroundProcessor
in interfaceTaskModuleDescriptor
- Returns:
-
getTaskExporter
Description copied from interface:TaskModuleDescriptor
Retrieves the plugin class responsible for exporting of user configuration of this plugin.- Specified by:
getTaskExporter
in interfaceTaskModuleDescriptor
- Returns:
TaskDefinitionExporter
for this ModuleDescriptor
-