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 of
ToolInstallation
.
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 the ToolInstallation
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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionall()
Lists up all the registeredToolPropertyDescriptor
s in the system.Gets the descriptor for this instance.protected void
type()
What is your 'T'?
-
Field Details
-
tool
-
-
Constructor Details
-
ToolProperty
public ToolProperty()
-
-
Method Details
-
setTool
-
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>
-
type
What is your 'T'? -
all
Lists up all the registeredToolPropertyDescriptor
s in the system.- See Also:
-