summaryrefslogtreecommitdiffstats
path: root/hamcrest-core/src/org/hamcrest/Factory.java
blob: a8bf5f92efd8918f9bee01e9907aeb1ee571c84f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package org.hamcrest;

import static java.lang.annotation.ElementType.METHOD;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;

/**
 * Marks a Hamcrest static factory method so tools recognise them.
 * A factory method is an equivalent to a named constructor.
 * 
 * @author Joe Walnes
 */
@Retention(RUNTIME)
@Target({METHOD})
public @interface Factory {
}