01: package com.bm.datagen.annotations;
02:
03: import java.lang.annotation.ElementType;
04: import java.lang.annotation.Retention;
05: import java.lang.annotation.RetentionPolicy;
06: import java.lang.annotation.Target;
07:
08: /**
09: * This annotation describes the metadata of an generator.
10: *
11: * @author Daniel Wiese
12: */
13: @Target(ElementType.TYPE)
14: @Retention(RetentionPolicy.RUNTIME)
15: public @interface GeneratorType {
16:
17: /**
18: * The type of the generator. E.g. java.util.Date-> will generate Date
19: * instances.
20: */
21: Class className();
22:
23: /**
24: * The name of the fields (optional).
25: *
26: */
27: String[] field() default { "$all" };
28:
29: /**
30: * The field type to which the generator should be applied.
31: *
32: */
33: FieldType fieldType() default FieldType.ALL_TYPES;
34:
35: }
|