Package hudson.model
Class JDK.DescriptorImpl
- Enclosing class:
- JDK
-
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected FormValidation
checkHomeDirectory
(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 ofToolInstallation
s.void
setInstallations
(JDK... jdks) OverwritesToolInstallation
s.Methods inherited from class hudson.tools.ToolDescriptor
configure, configure, doCheckHome, doCheckName, getCategory, getDefaultProperties, getPropertyDescriptors
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, 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
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
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>
-
getInstallations
Description copied from class:ToolDescriptor
Configured instances ofToolInstallation
s.- Overrides:
getInstallations
in classToolDescriptor<JDK>
- Returns:
- read-only list of installations; can be empty but never null.
-
setInstallations
Description copied from class:ToolDescriptor
OverwritesToolInstallation
s.- Overrides:
setInstallations
in classToolDescriptor<JDK>
- Parameters:
jdks
- list of installations; can be empty but never null.
-
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<JDK>
-
checkHomeDirectory
Checks if the JAVA_HOME is a valid JAVA_HOME path.- Overrides:
checkHomeDirectory
in classToolDescriptor<JDK>
- 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()
-