Package io.micronaut.context.annotation
Annotation Type Primary
-
@Qualifier @Documented @Retention(RUNTIME) public @interface Primary
A
Qualifier
that indicates that this bean is the primary bean that should be selected in the case of multiple possible interface implementations.Note that if multiple primary beans are found then a
NonUniqueBeanException
can still occur.- See Also:
@Qualifier
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.String
NAME
Qualified name.static java.lang.String
SIMPLE_NAME
The simple name of this annotation.
-