Package org.osgi.service.cdi.annotations
Annotation Interface MinimumCardinality
@Documented
@Qualifier
@Retention(RUNTIME)
@Target({FIELD,PARAMETER})
public @interface MinimumCardinality
Annotation used in conjunction with
Reference
to specify the minimum
cardinality reference property.
Specifying the MinimumCardinality
annotation with the value of
0
on a unary reference is a definition error.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Support inline instantiation of theMinimumCardinality
annotation. -
Optional Element Summary
-
Element Details
-
value
int valueThe minimum cardinality of the reference.The value must be a positive integer.
For example:
@MinimumCardinality(3)
- Default:
- 1
-