diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanFactoryInitializationAotProcessor.java b/spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanFactoryInitializationAotProcessor.java index 2e0880ba40b..c1037d51af6 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanFactoryInitializationAotProcessor.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanFactoryInitializationAotProcessor.java @@ -30,9 +30,9 @@ import org.springframework.lang.Nullable; * *
Note: Using this interface on a registered bean will cause the bean * and all of its dependencies to be initialized during AOT processing. - * We generally recommend that this interface is only used with infrastructure beans - * such as {@link BeanFactoryPostProcessor} which have limited dependencies and - * are already initialized early in the bean factory lifecycle. + * We generally recommend that this interface is only used with infrastructure + * beans such as {@link BeanFactoryPostProcessor} which have limited dependencies + * and are already initialized early in the bean factory lifecycle. * * @author Phillip Webb * @author Stephane Nicoll diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanRegistrationAotProcessor.java b/spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanRegistrationAotProcessor.java index 39e5092a9f5..9686529df3a 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanRegistrationAotProcessor.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanRegistrationAotProcessor.java @@ -16,7 +16,7 @@ package org.springframework.beans.factory.aot; -import org.springframework.beans.factory.config.BeanFactoryPostProcessor; +import org.springframework.beans.factory.config.BeanPostProcessor; import org.springframework.beans.factory.support.RegisteredBean; import org.springframework.lang.Nullable; @@ -27,12 +27,11 @@ import org.springframework.lang.Nullable; *
{@link BeanRegistrationAotProcessor} implementations may be registered in * a {@value AotServices#FACTORIES_RESOURCE_LOCATION} resource or as a bean. * - *
- * Note: Using this interface on a registered bean will cause the bean + *
Note: Using this interface on a registered bean will cause the bean * and all of its dependencies to be initialized during AOT processing. * We generally recommend that interface is only used with infrastructure beans - * such as {@link BeanFactoryPostProcessor} which have limited dependencies and - * are already initialized early in the bean factory lifecycle. + * such as {@link BeanPostProcessor} which have limited dependencies and are + * already initialized early in the bean factory lifecycle. * * @author Phillip Webb * @since 6.0