Package hudson.tools
Class ToolProperty<T extends ToolInstallation>
- java.lang.Object
-
- hudson.tools.ToolProperty<T>
-
- Type Parameters:
T
-ToolProperty
can 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
.ToolProperty
s show up in the configuration screen of a tool, and they are persisted with theToolInstallation
object.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 registeredToolPropertyDescriptor
s in the system.ToolPropertyDescriptor
getDescriptor()
Gets the descriptor for this instance.protected void
setTool(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:Describable
Gets the descriptor for this instance.Descriptor
is a singleton for every concreteDescribable
implementation, 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:
getDescriptor
in interfaceDescribable<T extends ToolInstallation>
-
all
public static DescriptorExtensionList<ToolProperty<?>,ToolPropertyDescriptor> all()
Lists up all the registeredToolPropertyDescriptor
s in the system.- See Also:
ToolDescriptor.getPropertyDescriptors()
-
-