Annotation Interface Qualifier


@Target(ANNOTATION_TYPE) @Retention(RUNTIME) @Documented public @interface Qualifier
Meta-annotation that marks other annotations as qualifier annotations.

Qualifiers are used to distinguish between multiple beans of the same type, allowing for more precise control over which implementation should be injected. Custom qualifier annotations should be annotated with @Qualifier.

Example of creating a custom qualifier:

 @Qualifier
 @Retention(RUNTIME)
 public @interface Database {
     String value();
 }
 
Since:
4.0.0
See Also: