File tree 1 file changed +14
-0
lines changed
spring-beans/src/main/java/org/springframework/beans
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 22
22
/**
23
23
* Strategy for creating {@link BeanInfo} instances.
24
24
*
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
+ *
25
39
* @author Arjen Poutsma
26
40
* @since 3.2
27
41
*/
You can’t perform that action at this time.
0 commit comments