Annotation Interface RequirementMeta
@Documented
@Retention(RUNTIME)
@Target(ANNOTATION_TYPE)
@RequirementMeta
public @interface RequirementMeta
Annotation to define metadata for custom requirement annotations.
This meta-annotation is applied to other annotations that serve as requirements within the system. It provides details about how the annotated requirement should be handled, such as the methods to extract data and its type.
Attributes:
methods: Specifies which method(s) to use when retrieving data from the annotated requirement.type: Indicates the type of requirement. Defaults toRequirementType.STORING.
- Since:
- 3.1.0-SNAPSHOT
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Specifies the method(s) to be used when extracting values from the annotated requirement.Defines the type of requirement.
-
Element Details
-
methods
String[] methodsSpecifies the method(s) to be used when extracting values from the annotated requirement.- Returns:
- an array of method names to extract values from.
- Default:
- {"value"}
-
type
RequirementType typeDefines the type of requirement. This affects how the requirement is interpreted and processed.Defaults to
RequirementType.STORING, which assumes that the requirement holds specific data to be stored and processed.- Returns:
- the
RequirementTypeof the annotated requirement.
- Default:
- STORING
-