Skip to content

Commit 5ce20fd

Browse files
committed
Improved Javadoc
1 parent 29613f1 commit 5ce20fd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

spring-beans/src/main/java/org/springframework/beans/BeanInfoFactory.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,20 @@
2222
/**
2323
* Strategy for creating {@link BeanInfo} instances.
2424
*
25+
* <p>BeanInfoFactories are are instantiated by the {@link CachedIntrospectionResults},
26+
* which looks for {@code META-INF/spring.beanInfoFactories} files on the class path.
27+
* These files contain one or more {@code BeanInfoFactory} class names, each of a single
28+
* line. When a {@link BeanInfo} is to be created, the {@code CachedIntrospectionResults}
29+
* will iterate through the discovered factories, asking each one if it {@linkplain
30+
* #supports(Class) supports} the given bean class. If it does, {@link
31+
* #getBeanInfo(Class)} will be called; if not, the next factory will be queried. If none
32+
* of the factories support the class, an standard {@link BeanInfo} is created as a
33+
* default.
34+
*
35+
* <p>Note that the {@link CachedIntrospectionResults} sorts the {@code BeanInfoFactory}
36+
* instances by {@link org.springframework.core.annotation.Order Order}, so that ones with
37+
* a higher precedence come first.
38+
*
2539
* @author Arjen Poutsma
2640
* @since 3.2
2741
*/

0 commit comments

Comments
 (0)