Package hudson.tasks
Class Maven.MavenInstallation.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<ToolInstallation>
-
- hudson.tools.ToolDescriptor<Maven.MavenInstallation>
-
- hudson.tasks.Maven.MavenInstallation.DescriptorImpl
-
- Enclosing class:
- Maven.MavenInstallation
@Extension @Symbol("maven") public static class Maven.MavenInstallation.DescriptorImpl extends ToolDescriptor<Maven.MavenInstallation>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FormValidation
checkHomeDirectory(File value)
Checks if the MAVEN_HOME is valid.List<? extends ToolInstaller>
getDefaultInstallers()
Optional list of installers to be configured by default for new tools of this type.String
getDisplayName()
Human readable name of this kind of configurable object.Maven.MavenInstallation[]
getInstallations()
Configured instances ofToolInstallation
s.void
setInstallations(Maven.MavenInstallation... installations)
OverwritesToolInstallation
s.-
Methods inherited from class hudson.tools.ToolDescriptor
configure, doCheckHome, doCheckName, getCategory, getDefaultProperties, getPropertyDescriptors
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getDisplayName
@NonNull public String getDisplayName()
Description copied from class:Descriptor
Human readable name of this kind of configurable object. Should be overridden for most descriptors, if the display name is visible somehow. As a fallback it usesClass.getSimpleName()
onDescriptor.clazz
, so for exampleMyThing
fromsome.pkg.MyThing.DescriptorImpl
. Historically some implementations returned null as a way of hiding the descriptor from the UI, but this is generally managed by an explicit method such asisEnabled
orisApplicable
.- Overrides:
getDisplayName
in classDescriptor<ToolInstallation>
-
getDefaultInstallers
public List<? extends ToolInstaller> getDefaultInstallers()
Description copied from class:ToolDescriptor
Optional list of installers to be configured by default for new tools of this type. If there are popular versions of the tool available using generic installation techniques, they can be returned here for the user's convenience.- Overrides:
getDefaultInstallers
in classToolDescriptor<Maven.MavenInstallation>
-
getInstallations
public Maven.MavenInstallation[] getInstallations()
Description copied from class:ToolDescriptor
Configured instances ofToolInstallation
s.- Overrides:
getInstallations
in classToolDescriptor<Maven.MavenInstallation>
- Returns:
- read-only list of installations; can be empty but never null.
-
setInstallations
public void setInstallations(Maven.MavenInstallation... installations)
Description copied from class:ToolDescriptor
OverwritesToolInstallation
s.- Overrides:
setInstallations
in classToolDescriptor<Maven.MavenInstallation>
- Parameters:
installations
- list of installations; can be empty but never null.
-
checkHomeDirectory
protected FormValidation checkHomeDirectory(File value)
Checks if the MAVEN_HOME is valid.- Overrides:
checkHomeDirectory
in classToolDescriptor<Maven.MavenInstallation>
- Parameters:
value
- a possible value forToolInstallation.getHome()
, known to already exist on the controller TODO(terminology) or is it built-in?- Returns:
- by default,
FormValidation.ok()
-
-