Skip to content

Commit d0966df

Browse files
committed
Revise contribution
See gh-34747
1 parent bb45a3a commit d0966df

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
@@ -144,8 +144,10 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
144144
private final Set<Class<?>> ignoredDependencyTypes = new HashSet<>();
145145

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

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

0 commit comments

Comments
 (0)