KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hudson > triggers > TriggerDescriptor


1 package hudson.triggers;
2
3 import hudson.model.Descriptor;
4 import hudson.model.Item;
5
6 /**
7  * {@link Descriptor} for Trigger.
8  * @author Kohsuke Kawaguchi
9  */

10 public abstract class TriggerDescriptor extends Descriptor<Trigger<?>> {
11     protected TriggerDescriptor(Class JavaDoc<? extends Trigger<?>> clazz) {
12         super(clazz);
13     }
14
15     /**
16      * Returns true if this trigger is applicable to the
17      * given {@link Item}.
18      *
19      * @return
20      * true to allow user to configure a trigger for this item.
21      */

22     public abstract boolean isApplicable(Item item);
23 }
24
Popular Tags