All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hudson.triggers.TriggerDescriptor Maven / Gradle / Ivy

package hudson.triggers;

import hudson.model.Descriptor;
import hudson.model.Item;

/**
 * {@link Descriptor} for Trigger.
 * @author Kohsuke Kawaguchi
 */
public abstract class TriggerDescriptor extends Descriptor> {
    protected TriggerDescriptor(Class> clazz) {
        super(clazz);
    }

    /**
     * Returns true if this trigger is applicable to the
     * given {@link Item}.
     *
     * @return
     *      true to allow user to configure a trigger for this item.
     */
    public abstract boolean isApplicable(Item item);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy