Class TriggerDescriptor

    • Constructor Detail

      • 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 Detail

      • 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.