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 of ToolInstallation
, and this 'T'
represents that type. Also see PropertyDescriptor.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
Field Summary |
protected T |
tool
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tool
protected transient T extends ToolInstallation tool
ToolProperty
public ToolProperty()
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 concrete Describable
implementation, so if a.getClass()==b.getClass() then
a.getDescriptor()==b.getDescriptor() must hold.
- Specified by:
getDescriptor
in interface Describable<ToolProperty<?>>
type
public abstract Class<T> type()
- What is your 'T'?
all
public static DescriptorExtensionList<ToolProperty<?>,ToolPropertyDescriptor> all()
- Lists up all the registered
ToolPropertyDescriptor
s in the system.
- See Also:
ToolDescriptor.getPropertyDescriptors()
Copyright © 2004-2013. All Rights Reserved.