hudson.tools
Class DownloadFromUrlInstaller.DescriptorImpl<T extends DownloadFromUrlInstaller>

java.lang.Object
  extended by hudson.model.Descriptor<ToolInstaller>
      extended by hudson.tools.ToolInstallerDescriptor<T>
          extended by hudson.tools.DownloadFromUrlInstaller.DescriptorImpl<T>
All Implemented Interfaces:
Saveable
Direct Known Subclasses:
Maven.MavenInstaller.DescriptorImpl
Enclosing class:
DownloadFromUrlInstaller

public abstract static class DownloadFromUrlInstaller.DescriptorImpl<T extends DownloadFromUrlInstaller>
extends ToolInstallerDescriptor<T>


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
protected DownloadFromUrlInstaller.DescriptorImpl()
           
 
Method Summary
protected  DownloadService.Downloadable createDownloadable()
           
 String getId()
          This ID needs to be unique, and needs to match the ID token in the JSON update file.
 List<? extends DownloadFromUrlInstaller.Installable> getInstallables()
          List of installable tools.
 
Methods inherited from class hudson.tools.ToolInstallerDescriptor
all, for_, isApplicable
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, 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

DownloadFromUrlInstaller.DescriptorImpl

protected DownloadFromUrlInstaller.DescriptorImpl()
Method Detail

createDownloadable

protected DownloadService.Downloadable createDownloadable()

getId

public String getId()
This ID needs to be unique, and needs to match the ID token in the JSON update file.

By default we use the fully-qualified class name of the DownloadFromUrlInstaller subtype.

Overrides:
getId in class Descriptor<ToolInstaller>
Returns:
Stick to valid Java identifier character, plus '.', which had to be allowed for historical reasons.

getInstallables

public List<? extends DownloadFromUrlInstaller.Installable> getInstallables()
                                                                     throws IOException
List of installable tools.

The UI uses this information to populate the drop-down. Subtypes can override this method if it wants to change the way the list is filled.

Returns:
never null.
Throws:
IOException


Copyright © 2004-2013. All Rights Reserved.