File D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\target\site\qc\core\src\main\java\jenkins\model\BuildDiscarderDescriptor.java.html

1 package jenkins.model;
2
3 import hudson.DescriptorExtensionList;
4 import hudson.model.Descriptor;
5
6 /**
7 * {@link Descriptor} for {@link BuildDiscarder}.
8 *
9 * @author Kohsuke Kawaguchi
10 */
11 public abstract class BuildDiscarderDescriptor extends Descriptor<BuildDiscarder> {
12 protected BuildDiscarderDescriptor(Class clazz) {
13 super(clazz);
14 }
15
16 protected BuildDiscarderDescriptor() {
17 }
18
19 /**
20 * Returns all the registered {@link BuildDiscarderDescriptor}s.
21 */
22 public static DescriptorExtensionList<BuildDiscarder,BuildDiscarderDescriptor> all() {
23 return Jenkins.getInstance().<BuildDiscarder,BuildDiscarderDescriptor>getDescriptorList(BuildDiscarder.class);
24 }
25 }
26