Class TriggerDescriptor

java.lang.Object
hudson.model.Descriptor<Trigger<?>>
hudson.triggers.TriggerDescriptor
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Direct Known Subclasses:
ReverseBuildTrigger.DescriptorImpl, SCMTrigger.DescriptorImpl, TimerTrigger.DescriptorImpl

public abstract class TriggerDescriptor extends Descriptor<Trigger<?>>
Descriptor for Trigger.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • TriggerDescriptor

      protected TriggerDescriptor(Class<? extends Trigger<?>> clazz)
    • TriggerDescriptor

      protected TriggerDescriptor()
      Infers the type of the corresponding SCM from the outer class. This version works when you follow the common convention, where a descriptor is written as the static nested class of the describable class.
      Since:
      1.278
  • Method Details

    • isApplicable

      public abstract boolean isApplicable(Item item)
      Returns true if this trigger is applicable to the given Item.
      Returns:
      true to allow user to configure a trigger for this item.