Skip to content

Commit 0d4737a

Browse files
committed
Polishing
1 parent 1ef8734 commit 0d4737a

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/annotation/QualifierAnnotationAutowireCandidateResolver.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@
4444
import org.springframework.util.ObjectUtils;
4545

4646
/**
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}.
5051
*
5152
* <p>Also supports JSR-330's {@link jakarta.inject.Qualifier} annotation if available.
5253
*
@@ -68,7 +69,7 @@ public class QualifierAnnotationAutowireCandidateResolver extends GenericTypeAwa
6869

6970
/**
7071
* Create a new {@code QualifierAnnotationAutowireCandidateResolver} for Spring's
71-
* standard {@link Qualifier} annotation.
72+
* standard {@link Qualifier @Qualifier} annotation.
7273
* <p>Also supports JSR-330's {@link jakarta.inject.Qualifier} annotation if available.
7374
*/
7475
@SuppressWarnings("unchecked")
@@ -107,11 +108,11 @@ public QualifierAnnotationAutowireCandidateResolver(Set<Class<? extends Annotati
107108
/**
108109
* Register the given type to be used as a qualifier when autowiring.
109110
* <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.
112113
* <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 meta annotation.
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.
115116
* @param qualifierType the annotation type to register
116117
*/
117118
public void addQualifierType(Class<? extends Annotation> qualifierType) {
@@ -122,7 +123,7 @@ public void addQualifierType(Class<? extends Annotation> qualifierType) {
122123
* Set the 'value' annotation type, to be used on fields, method parameters
123124
* and constructor parameters.
124125
* <p>The default value annotation type is the Spring-provided
125-
* {@link Value} annotation.
126+
* {@link Value @Value} annotation.
126127
* <p>This setter property exists so that developers can provide their own
127128
* (non-Spring-specific) annotation type to indicate a default value
128129
* expression for a specific argument.

spring-beans/src/main/java/org/springframework/beans/factory/support/GenericTypeAwareAutowireCandidateResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* <p>This is the base class for
4040
* {@link org.springframework.beans.factory.annotation.QualifierAnnotationAutowireCandidateResolver},
41-
* providing an implementation all non-annotation-based resolution steps at this level.
41+
* providing an implementation for all non-annotation-based resolution steps at this level.
4242
*
4343
* @author Juergen Hoeller
4444
* @since 4.0

0 commit comments

Comments
 (0)