1 package org.hamcrest; 2 3 import static java.lang.annotation.ElementType.METHOD; 4 import java.lang.annotation.Retention; 5 import static java.lang.annotation.RetentionPolicy.RUNTIME; 6 import java.lang.annotation.Target; 7 8 /** 9 * Marks a Hamcrest static factory method so tools recognise them. 10 * A factory method is an equivalent to a named constructor. 11 * 12 * @author Joe Walnes 13 */ 14 @Retention(RUNTIME) 15 @Target({METHOD}) 16 public @interface Factory { 17 } 18