You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-beans/src/main/java/org/springframework/beans/factory/annotation/QualifierAnnotationAutowireCandidateResolver.java
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -44,9 +44,10 @@
44
44
importorg.springframework.util.ObjectUtils;
45
45
46
46
/**
47
-
* {@link AutowireCandidateResolver} implementation that matches bean definition qualifiers
48
-
* against {@link Qualifier qualifier annotations} on the field or parameter to be autowired.
49
-
* Also supports suggested expression values through a {@link Value value} annotation.
47
+
* {@link AutowireCandidateResolver} implementation that matches bean definition
48
+
* qualifiers against {@link #addQualifierType(Class) qualifier annotations} on
49
+
* the field or parameter to be autowired. Also supports suggested expression
50
+
* values through a {@link #setValueAnnotationType(Class) value annotation}.
50
51
*
51
52
* <p>Also supports JSR-330's {@link jakarta.inject.Qualifier} annotation if available.
52
53
*
@@ -68,7 +69,7 @@ public class QualifierAnnotationAutowireCandidateResolver extends GenericTypeAwa
68
69
69
70
/**
70
71
* Create a new {@code QualifierAnnotationAutowireCandidateResolver} for Spring's
71
-
* standard {@link Qualifier} annotation.
72
+
* standard {@link Qualifier @Qualifier} annotation.
72
73
* <p>Also supports JSR-330's {@link jakarta.inject.Qualifier} annotation if available.
73
74
*/
74
75
@SuppressWarnings("unchecked")
@@ -107,11 +108,11 @@ public QualifierAnnotationAutowireCandidateResolver(Set<Class<? extends Annotati
107
108
/**
108
109
* Register the given type to be used as a qualifier when autowiring.
109
110
* <p>This identifies qualifier annotations for direct use (on fields,
110
-
* method parameters and constructor parameters) as well as meta
111
-
* annotations that in turn identify actual qualifier annotations.
111
+
* method parameters and constructor parameters) as well as
112
+
* meta-annotations that in turn identify actual qualifier annotations.
112
113
* <p>This implementation only supports annotations as qualifier types.
113
-
* The default is Spring's {@link Qualifier} annotation which serves
114
-
* as a qualifier for direct use and also as a metaannotation.
114
+
* The default is Spring's {@link Qualifier @Qualifier} annotation which serves
115
+
* as a qualifier for direct use and also as a meta-annotation.
115
116
* @param qualifierType the annotation type to register
Copy file name to clipboardExpand all lines: spring-beans/src/main/java/org/springframework/beans/factory/support/GenericTypeAwareAutowireCandidateResolver.java
0 commit comments