hudson.model
Class JDK.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<ToolInstallation>
      extended by hudson.tools.ToolDescriptor<JDK>
          extended by hudson.model.JDK.DescriptorImpl
All Implemented Interfaces:
Saveable
Enclosing class:
JDK

@Extension
public static class JDK.DescriptorImpl
extends ToolDescriptor<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
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
JDK.DescriptorImpl()
           
 
Method Summary
 FormValidation doCheckHome(File value)
          Checks if the JAVA_HOME is a valid JAVA_HOME path.
 FormValidation doCheckName(String value)
           
 List<JDKInstaller> 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.
 JDK[] getInstallations()
          Configured instances of ToolInstallations.
 void setInstallations(JDK... jdks)
          Overwrites ToolInstallations.
 
Methods inherited from class hudson.tools.ToolDescriptor
configure, getDefaultProperties, getPropertyDescriptors
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDK.DescriptorImpl

public JDK.DescriptorImpl()
Method Detail

getDisplayName

public String getDisplayName()
Description copied from class: Descriptor
Human readable name of this kind of configurable object.

Specified by:
getDisplayName in class Descriptor<ToolInstallation>

getInstallations

public JDK[] getInstallations()
Description copied from class: ToolDescriptor
Configured instances of ToolInstallations.

Overrides:
getInstallations in class ToolDescriptor<JDK>
Returns:
read-only list of installations; can be empty but never null.

setInstallations

public void setInstallations(JDK... jdks)
Description copied from class: ToolDescriptor
Overwrites ToolInstallations.

Overrides:
setInstallations in class ToolDescriptor<JDK>
Parameters:
jdks - list of installations; can be empty but never null.

getDefaultInstallers

public List<JDKInstaller> 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 class ToolDescriptor<JDK>

doCheckHome

public FormValidation doCheckHome(@QueryParameter
                                  File value)
Checks if the JAVA_HOME is a valid JAVA_HOME path.


doCheckName

public FormValidation doCheckName(@QueryParameter
                                  String value)


Copyright © 2004-2013. All Rights Reserved.