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
Constructors -
Method Summary
Modifier 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.ToolDescriptor
configure, configure, doCheckHome, doCheckName, getCategory, getDefaultProperties, getPropertyDescriptorsMethods 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: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 classDescriptor<ToolInstallation>
-
getInstallations
Description copied from class:ToolDescriptorConfigured instances ofToolInstallations.- Overrides:
getInstallationsin classToolDescriptor<JDK>- Returns:
- read-only list of installations; can be empty but never null.
-
setInstallations
Description copied from class:ToolDescriptorOverwritesToolInstallations.- Overrides:
setInstallationsin classToolDescriptor<JDK>- Parameters:
jdks- list of installations; can be empty but never null.
-
getDefaultInstallers
Description 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 classToolDescriptor<JDK>
-
checkHomeDirectory
Checks if the JAVA_HOME is a valid JAVA_HOME path.- Overrides:
checkHomeDirectoryin 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()
-