Package hudson.model
Class JDK.DescriptorImpl
- Enclosing class:
- JDK
- 
Nested Class SummaryNested classes/interfaces inherited from class hudson.model.DescriptorDescriptor.FormException, Descriptor.PropertyType, Descriptor.Self
- 
Field SummaryFields inherited from class hudson.model.Descriptorclazz
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected FormValidationcheckHomeDirectory(File value) Checks if the JAVA_HOME is a valid JAVA_HOME path.List<? extends ToolInstaller> Optional list of installers to be configured by default for new tools of this type.Human readable name of this kind of configurable object.JDK[]Configured instances ofToolInstallations.voidsetInstallations(JDK... jdks) OverwritesToolInstallations.Methods inherited from class hudson.tools.ToolDescriptorconfigure, configure, doCheckHome, doCheckName, getCategory, getDefaultProperties, getPropertyDescriptorsMethods inherited from class hudson.model.DescriptoraddHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
- 
Constructor Details- 
DescriptorImplpublic DescriptorImpl()
 
- 
- 
Method Details- 
getDisplayNameDescription copied from class:DescriptorHuman 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 exampleMyThingfromsome.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 asisEnabledorisApplicable.- Overrides:
- getDisplayNamein class- Descriptor<ToolInstallation>
 
- 
getInstallationsDescription copied from class:ToolDescriptorConfigured instances ofToolInstallations.- Overrides:
- getInstallationsin class- ToolDescriptor<JDK>
- Returns:
- read-only list of installations; can be empty but never null.
 
- 
setInstallationsDescription copied from class:ToolDescriptorOverwritesToolInstallations.- Overrides:
- setInstallationsin class- ToolDescriptor<JDK>
- Parameters:
- jdks- list of installations; can be empty but never null.
 
- 
getDefaultInstallersDescription copied from class:ToolDescriptorOptional 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:
- getDefaultInstallersin class- ToolDescriptor<JDK>
 
- 
checkHomeDirectoryChecks if the JAVA_HOME is a valid JAVA_HOME path.- Overrides:
- checkHomeDirectoryin class- ToolDescriptor<JDK>
- Parameters:
- value- a possible value for- ToolInstallation.getHome(), known to already exist on the controller TODO(terminology) or is it built-in?
- Returns:
- by default, FormValidation.ok()
 
 
-