T - ToolProperty can choose to only work with a certain subtype of ToolInstallation, and this 'T'
represents that type. Also see PropertyDescriptor.isApplicable(Class).public abstract class ToolProperty<T extends ToolInstallation> extends Object implements Describable<ToolProperty<?>>, ExtensionPoint
ToolInstallation.
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 the ToolInstallation object.
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
ToolProperty() |
| Modifier and Type | Method and Description |
|---|---|
static DescriptorExtensionList<ToolProperty<?>,ToolPropertyDescriptor> |
all()
Lists up all the registered
ToolPropertyDescriptors in the system. |
ToolPropertyDescriptor |
getDescriptor()
Gets the descriptor for this instance.
|
protected void |
setTool(T tool) |
abstract Class<T> |
type()
What is your 'T'?
|
protected transient T extends ToolInstallation tool
protected void setTool(T tool)
public ToolPropertyDescriptor getDescriptor()
Describable
Descriptor is a singleton for every concrete Describable
implementation, so if a.getClass() == b.getClass() then by default
a.getDescriptor() == b.getDescriptor() as well.
(In rare cases a single implementation class may be used for instances with distinct descriptors.)
getDescriptor in interface Describable<ToolProperty<?>>public static DescriptorExtensionList<ToolProperty<?>,ToolPropertyDescriptor> all()
ToolPropertyDescriptors in the system.ToolDescriptor.getPropertyDescriptors()Copyright © 2019. All rights reserved.