@Retention(value=RUNTIME) @Target(value={ANNOTATION_TYPE,TYPE,METHOD}) public @interface Requires
Constraint.
Can be used directly on a type or method, but also can be used to annotate other annotations.
When used to annotate an other annotation, the target annotation defines the requirement context (which is passed to
the Constraint.
In all other cases, there is no context.| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends Constraint>[] |
value |
public abstract Class<? extends Constraint>[] value
Copyright © 2018 JBoss by Red Hat. All rights reserved.