1 package net.sourceforge.basher.annotations; 2 3 import java.lang.annotation.Retention; 4 import java.lang.annotation.RetentionPolicy; 5 import java.lang.annotation.Target; 6 import java.lang.annotation.ElementType; 7 8 /** Defines the maximum number of times that the task in question may be executed. The default is 0 (execute without 9 * restrictions). 10 * @author Johan Lindquist 11 * @version $Revision$ 12 */ 13 @Retention(RetentionPolicy.RUNTIME) 14 @Target(ElementType.TYPE) 15 public @interface BasherMaxInvocations 16 { 17 /** Defines the maximum number of times the task may execute. 18 * 19 * @return The maximum number 20 */ 21 int max() default 0; 22 }