hudson.model
Class LabelFinder

java.lang.Object
  extended by hudson.model.LabelFinder
All Implemented Interfaces:
ExtensionPoint

public abstract class LabelFinder
extends Object
implements ExtensionPoint

Automatically adds labels to Nodes.

To register your implementation, put Extension on your derived types.

Since:
1.323 Signature of this class changed in 1.323, after making sure that no plugin in the Subversion repository is using this.
Author:
Stephen Connolly

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
LabelFinder()
           
 
Method Summary
static ExtensionList<LabelFinder> all()
          Returns all the registered LabelFinders.
abstract  Collection<LabelAtom> findLabels(Node node)
          Find the labels that the node supports.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelFinder

public LabelFinder()
Method Detail

all

public static ExtensionList<LabelFinder> all()
Returns all the registered LabelFinders.


findLabels

public abstract Collection<LabelAtom> findLabels(Node node)
Find the labels that the node supports.

Parameters:
node - The node that receives labels. Never null.
Returns:
A set of labels for the node. Can be empty but never null.


Copyright © 2004-2013 Hudson. All Rights Reserved.