Skip to content

Commit d5baab2

Browse files
committed
Merge branch '6.2.x'
2 parents 7dfe0cc + d0966df commit d5baab2

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

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

+11-5
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
143143
private final Set<Class<?>> ignoredDependencyTypes = new HashSet<>();
144144

145145
/**
146-
* Dependency interfaces to ignore on dependency check and autowire, as Set of
147-
* Class objects. By default, only the BeanFactory interface is ignored.
146+
* Dependency interfaces to ignore on dependency check and autowire, as a Set
147+
* of Class objects.
148+
* <p>By default, the {@code BeanNameAware}, {@code BeanFactoryAware}, and
149+
* {@code BeanClassLoaderAware} interfaces are ignored.
148150
*/
149151
private final Set<Class<?>> ignoredDependencyInterfaces = new HashSet<>();
150152

@@ -283,11 +285,15 @@ public void ignoreDependencyType(Class<?> type) {
283285
/**
284286
* Ignore the given dependency interface for autowiring.
285287
* <p>This will typically be used by application contexts to register
286-
* dependencies that are resolved in other ways, like BeanFactory through
287-
* BeanFactoryAware or ApplicationContext through ApplicationContextAware.
288-
* <p>By default, only the BeanFactoryAware interface is ignored.
288+
* dependencies that are resolved in other ways, like {@code BeanFactory}
289+
* through {@code BeanFactoryAware} or {@code ApplicationContext} through
290+
* {@code ApplicationContextAware}.
291+
* <p>By default, the {@code BeanNameAware}, {@code BeanFactoryAware}, and
292+
* {@code BeanClassLoaderAware} interfaces are ignored.
289293
* For further types to ignore, invoke this method for each type.
294+
* @see org.springframework.beans.factory.BeanNameAware
290295
* @see org.springframework.beans.factory.BeanFactoryAware
296+
* @see org.springframework.beans.factory.BeanClassLoaderAware
291297
* @see org.springframework.context.ApplicationContextAware
292298
*/
293299
public void ignoreDependencyInterface(Class<?> ifc) {

0 commit comments

Comments
 (0)