Browse Source

Describe the replacement use case for BeanRegistrationAotProcessor

Closes gh-29126
pull/29282/head
Stephane Nicoll 2 years ago
parent
commit
a16afe8e10
  1. 8
      spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanRegistrationAotProcessor.java

8
spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanRegistrationAotProcessor.java

@ -22,7 +22,12 @@ import org.springframework.lang.Nullable; @@ -22,7 +22,12 @@ import org.springframework.lang.Nullable;
/**
* AOT processor that makes bean registration contributions by processing
* {@link RegisteredBean} instances.
* {@link RegisteredBean} instances. An AOT processor replaces its usual
* runtime behavior by an optimized arrangement, usually in generated
* code. For that reason, a component that implements this interface is
* not contributed by default. If a component that implements this
* interface still needs to be invoked at runtime,
* {@link #isBeanExcludedFromAotProcessing} can be overridden.
*
* <p>{@link BeanRegistrationAotProcessor} implementations may be registered in
* a {@value AotServices#FACTORIES_RESOURCE_LOCATION} resource or as a bean.
@ -34,6 +39,7 @@ import org.springframework.lang.Nullable; @@ -34,6 +39,7 @@ import org.springframework.lang.Nullable;
* already initialized early in the bean factory lifecycle.
*
* @author Phillip Webb
* @author Stephane Nicoll
* @since 6.0
* @see BeanRegistrationAotContribution
*/

Loading…
Cancel
Save