File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
spring-beans/src/main/java/org/springframework/beans/factory/aot Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .beans .factory .aot ;
18
18
19
+ import org .springframework .beans .factory .config .BeanFactoryPostProcessor ;
19
20
import org .springframework .beans .factory .config .ConfigurableListableBeanFactory ;
20
21
import org .springframework .lang .Nullable ;
21
22
22
23
/**
23
24
* AOT processor that makes bean factory initialization contributions by
24
25
* processing {@link ConfigurableListableBeanFactory} instances.
25
26
*
27
+ * <p>{@link BeanFactoryInitializationAotProcessor} implementations may be
28
+ * registered in a {@value AotServices#FACTORIES_RESOURCE_LOCATION} resource or
29
+ * as a bean.
30
+ *
31
+ * <p>
32
+ * Note: Using this interface on a registered bean will cause the bean
33
+ * <em>and</em> all of its dependencies to be initialized during AOT processing.
34
+ * We generally recommend that interface is only used with infrastructure beans
35
+ * such as {@link BeanFactoryPostProcessor} which have limited dependencies and
36
+ * are already initialized early in the bean factory lifecycle.
37
+ *
26
38
* @author Phillip Webb
27
39
* @author Stephane Nicoll
28
40
* @since 6.0
Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .beans .factory .aot ;
18
18
19
+ import org .springframework .beans .factory .config .BeanFactoryPostProcessor ;
19
20
import org .springframework .beans .factory .support .RegisteredBean ;
20
21
import org .springframework .lang .Nullable ;
21
22
22
23
/**
23
24
* AOT processor that makes bean registration contributions by processing
24
25
* {@link RegisteredBean} instances.
25
26
*
27
+ * <p>{@link BeanRegistrationAotProcessor} implementations may be registered in
28
+ * a {@value AotServices#FACTORIES_RESOURCE_LOCATION} resource or as a bean.
29
+ *
30
+ * <p>
31
+ * Note: Using this interface on a registered bean will cause the bean
32
+ * <em>and</em> all of its dependencies to be initialized during AOT processing.
33
+ * We generally recommend that interface is only used with infrastructure beans
34
+ * such as {@link BeanFactoryPostProcessor} which have limited dependencies and
35
+ * are already initialized early in the bean factory lifecycle.
36
+ *
26
37
* @author Phillip Webb
27
38
* @since 6.0
28
39
* @see BeanRegistrationAotContribution
You can’t perform that action at this time.
0 commit comments