hudson.tools
Class ToolProperty<T extends ToolInstallation>

java.lang.Object
  extended by 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. ToolPropertys 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
protected  T tool
           
 
Constructor Summary
ToolProperty()
           
 
Method Summary
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'?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tool

protected transient T extends ToolInstallation tool
Constructor Detail

ToolProperty

public ToolProperty()
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 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 ToolPropertyDescriptors in the system.

See Also:
ToolDescriptor.getPropertyDescriptors()


Copyright © 2004-2013. All Rights Reserved.