1. Project Clover database Wed Nov 12 2025 05:07:35 UTC
  2. Package guru.mikelue.foxglove.annotation

File DataGeneratorSource.java

 

Code metrics

0
0
0
1
31
10
0
-
-
0
-

Classes

Class Line # Actions
DataGeneratorSource 20 0 - 0 0
-1.0 -
 

Contributing tests

No tests hitting this source file were found.

Source view

1    package guru.mikelue.foxglove.annotation;
2   
3    import java.lang.annotation.*;
4   
5    import guru.mikelue.foxglove.DataGenerator;
6    import guru.mikelue.foxglove.functional.DataGeneratorProvider;
7   
8    /**
9    * Marks a method or a field as instant/provider of {@link DataGenerator}.
10    *
11    * <p>
12    * For annotated field, its type should be {@link DataGenerator} or {@link DataGeneratorProvider}.
13    *
14    * <p>
15    * For annotated method, its return type of method should be {@link DataGenerator}.
16    */
17    @Target({ElementType.FIELD, ElementType.METHOD})
18    @Retention(RetentionPolicy.RUNTIME)
19    @Documented @Inherited
 
20    public @interface DataGeneratorSource {
21    /**
22    * Defines the name of data generator.
23    *
24    * Without this attribute, the name of method/field is used as the name.
25    *
26    * @return The name of data generator
27    *
28    * @see GenData#generatorName()
29    */
30    String value() default "";
31    }