spring-framework/spring-context
Stephane Nicoll 1fdd91eb30 Restore order of setImportMetadata in AOT optimized contexts
This commit adapts the generated code for handling ImportAware to
register a bean definition rather than adding the BeanPostProcessor
directly on the beanFactory. The previous arrangement put the
post processor handling import aware callbacks first on the list,
leading to inconsistent callback orders.

Tests have been adapted to validate this exact scenario.

Closes gh-28915
2022-08-03 10:16:20 +02:00
..
src Restore order of setImportMetadata in AOT optimized contexts 2022-08-03 10:16:20 +02:00
.springBeans
spring-context.gradle Test the ApplicationContextAotGenerator with the agent 2022-06-30 18:20:32 +02:00