@BindToPrimary

Target: Non-primary annotations.

Description: Defines the list of primary annotations that accept the current annotation.

JavaDoc: Click here

Attributes:

Name Description Data type Required Default value
value FQNs of the annotations that accept this non-primary annotation. String [] Yes -

Example:

@BindToPrimary("my.package.MyPrimaryAnnotation")
public @interface MyNonPrimaryAnnotation {
    ...
}

Back to meta-annotation reference