Package hudson.tools
Class ToolProperty<T extends ToolInstallation>
- java.lang.Object
-
- hudson.tools.ToolProperty<T>
-
- Type Parameters:
T-ToolPropertycan choose to only work with a certain subtype ofToolInstallation, and this 'T' represents that type. Also seePropertyDescriptor.isApplicable(Class).
- All Implemented Interfaces:
ExtensionPoint,Describable<ToolProperty<?>>
- Direct Known Subclasses:
InstallSourceProperty
public abstract class ToolProperty<T extends ToolInstallation> extends Object implements Describable<ToolProperty<?>>, ExtensionPoint
Extensible property ofToolInstallation.Plugins can contribute this extension point to add additional data or UI actions to
ToolInstallation.ToolPropertys show up in the configuration screen of a tool, and they are persisted with theToolInstallationobject.Views
- config.jelly
- Added to the configuration page of the tool.
- Since:
- 1.303
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ToolProperty()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static DescriptorExtensionList<ToolProperty<?>,ToolPropertyDescriptor>all()Lists up all the registeredToolPropertyDescriptors in the system.ToolPropertyDescriptorgetDescriptor()Gets the descriptor for this instance.protected voidsetTool(T tool)abstract Class<T>type()What is your 'T'?
-
-
-
Field Detail
-
tool
protected transient T extends ToolInstallation tool
-
-
Method Detail
-
setTool
protected void setTool(T tool)
-
getDescriptor
public ToolPropertyDescriptor getDescriptor()
Description copied from interface:DescribableGets the descriptor for this instance.Descriptoris a singleton for every concreteDescribableimplementation, so ifa.getClass() == b.getClass()then by defaulta.getDescriptor() == b.getDescriptor()as well. (In rare cases a single implementation class may be used for instances with distinct descriptors.)- Specified by:
getDescriptorin interfaceDescribable<T extends ToolInstallation>
-
all
public static DescriptorExtensionList<ToolProperty<?>,ToolPropertyDescriptor> all()
Lists up all the registeredToolPropertyDescriptors in the system.- See Also:
ToolDescriptor.getPropertyDescriptors()
-
-