Skip to content

Commit bb45a3a

Browse files
iggzqsbrannen
authored andcommitted
Update AbstractAutowireCapableBeanFactory.ignoreDependencyInterface() Javadoc
Specifically, the documentation update reflects that: - Initially, it was mentioned that only the `BeanFactoryAware` interface is ignored by default. - The updated documentation now correctly states that `BeanNameAware`, `BeanFactoryAware`, and `BeanClassLoaderAware` interfaces are all ignored by default. This change ensures a more accurate representation of the default behavior regarding which dependency interfaces are automatically ignored during autowiring in the context of Spring's bean factory mechanism. Closes gh-34747 Signed-off-by: lituizi <[email protected]>
1 parent 7095f4c commit bb45a3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractAutowireCapableBeanFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public void ignoreDependencyType(Class<?> type) {
287287
* <p>This will typically be used by application contexts to register
288288
* dependencies that are resolved in other ways, like BeanFactory through
289289
* BeanFactoryAware or ApplicationContext through ApplicationContextAware.
290-
* <p>By default, only the BeanFactoryAware interface is ignored.
290+
* <p>By default, the BeanNameAware,BeanFactoryAware,BeanClassLoaderAware interface are ignored.
291291
* For further types to ignore, invoke this method for each type.
292292
* @see org.springframework.beans.factory.BeanFactoryAware
293293
* @see org.springframework.context.ApplicationContextAware

0 commit comments

Comments
 (0)