Package guru.mikelue.foxglove.annotation
Annotation Interface DataGeneratorSource
@Target({FIELD,METHOD})
@Retention(RUNTIME)
@Documented
@Inherited
public @interface DataGeneratorSource
Marks a method or a field as instant/provider of
DataGenerator.
For annotated field, its type should be DataGenerator or DataGeneratorProvider.
For annotated method, its return type of method should be DataGenerator.
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueDefines the name of data generator. Without this attribute, the name of method/field is used as the name.- Returns:
- The name of data generator
- See Also:
- Default:
""
-