KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hudson > model > JobProperty


1 package hudson.model;
2
3 import hudson.ExtensionPoint;
4 import hudson.Plugin;
5
6 /**
7  * Extensible property of {@link Job}.
8  *
9  * <p>
10  * {@link Plugin}s can extend this to define custom properties
11  * for {@link Job}s. {@link JobProperty}s show up in the user
12  * configuration screen, and they are persisted with the job object.
13  *
14  * <p>
15  * Configuration screen should be defined in <tt>config.jelly</tt>.
16  * Within this page, the {@link JobProperty} instance is available
17  * as <tt>instance</tt> variable (while <tt>it</tt> refers to {@link Job}.
18  *
19  *
20  * @author Kohsuke Kawaguchi
21  * @see JobPropertyDescriptor
22  * @since 1.72
23  */

24 public abstract class JobProperty<J extends Job<?,?>> implements Describable<JobProperty<?>>, ExtensionPoint {
25     /**
26      * The {@link Job} object that owns this property.
27      * This value will be set by the Hudson code.
28      * Derived classes can expect this value to be always set.
29      */

30     protected transient J owner;
31
32     /*package*/ final void setOwner(J owner) {
33         this.owner = owner;
34     }
35
36     /**
37      * {@inheritDoc}
38      */

39     public abstract JobPropertyDescriptor getDescriptor();
40 }
41
Popular Tags