hudson.matrix
Class MatrixConfigurationSorter

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<MatrixConfigurationSorter>
      extended by hudson.matrix.MatrixConfigurationSorter
All Implemented Interfaces:
ExtensionPoint, Describable<MatrixConfigurationSorter>, Comparator<MatrixConfiguration>
Direct Known Subclasses:
NoopMatrixConfigurationSorter

public abstract class MatrixConfigurationSorter
extends AbstractDescribableImpl<MatrixConfigurationSorter>
implements ExtensionPoint, Comparator<MatrixConfiguration>

Add sorting for configurations MatrixConfigurations of matrix job MatrixProject

Since:
1.439
Author:
Lucie Votypkova
See Also:
MatrixConfigurationSorterDescriptor

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
MatrixConfigurationSorter()
           
 
Method Summary
 MatrixConfigurationSorterDescriptor getDescriptor()
          Gets the descriptor for this instance.
abstract  void validate(MatrixProject p)
          Checks if this sorter is properly configured and applicable for the given project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Constructor Detail

MatrixConfigurationSorter

public MatrixConfigurationSorter()
Method Detail

validate

public abstract void validate(MatrixProject p)
                       throws FormValidation
Checks if this sorter is properly configured and applicable for the given project.

This method is invoked when the configuration is submitted to ensure that the sorter is compatible with the current project configuration (most probably with its Axis.)

Parameters:
p - Project for which this sorter is being used for.
Throws:
FormValidation - If you need to report an error to the user and reject the form submission.

getDescriptor

public MatrixConfigurationSorterDescriptor 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<MatrixConfigurationSorter>
Overrides:
getDescriptor in class AbstractDescribableImpl<MatrixConfigurationSorter>


Copyright © 2004-2013. All Rights Reserved.