From 7a4ed38cd4292332bb4f1eac7442c9549718ea9e Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Wed, 7 Jun 2023 21:21:05 +0900 Subject: [PATCH] This PR adds Javadoc for RegisteredBean.resolveAutowiredArgument() See gh-30401 Closes gh-30609 --- .../beans/factory/support/RegisteredBean.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/support/RegisteredBean.java b/spring-beans/src/main/java/org/springframework/beans/factory/support/RegisteredBean.java index 96ab85217671..c31cd22c7147 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/support/RegisteredBean.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/support/RegisteredBean.java @@ -212,6 +212,15 @@ public Executable resolveConstructorOrFactoryMethod() { .resolveConstructorOrFactoryMethod(getBeanName(), getMergedBeanDefinition()); } + /** + * Resolve an autowired argument. + * @param descriptor the descriptor for the dependency (field/method/constructor) + * @param typeConverter the TypeConverter to use for populating arrays and collections + * @param autowiredBeans a Set that all names of autowired beans (used for + * resolving the given dependency) are supposed to be added to + * @return the resolved object, or {@code null} if none found + * @since 6.0.9 + */ @Nullable public Object resolveAutowiredArgument(DependencyDescriptor descriptor, TypeConverter typeConverter, Set autowiredBeans) {