Allow AOT contributions to customize code fragments.

Update the `BeanRegistrationAotContribution` interface to allow
it to customize `BeanRegistrationCodeFragments`. This change
allows us to drop the `BeanRegistrationCodeFragmentsCustomizer`
interface since an `BeanRegistrationAotProcessor` can now be
used instead.

Closes gh-28557
This commit is contained in:
Phillip Webb
2022-06-02 14:51:22 -07:00
parent 74caa9213a
commit 8d79ec0b67
11 changed files with 143 additions and 156 deletions

View File

@@ -50,13 +50,13 @@ import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
/**
* Tests for {@link ScopedProxyBeanRegistrationCodeFragmentsCustomizer}.
* Tests for {@link ScopedProxyBeanRegistrationAotProcessor}.
*
* @author Stephane Nicoll
* @author Phillip Webb
* @since 6.0
*/
class ScopedProxyBeanRegistrationCodeFragmentsCustomizerTests {
class ScopedProxyBeanRegistrationAotProcessorTests {
private DefaultListableBeanFactory beanFactory;