When a context is pre-processed by the AOT engine, there's no configuration class parsing at runtime anymore and the link between an ImportAware configuration class and the class that imported it should be preserved.

This can be done by computing the mapping and then providing a post procesor that honors the callback.

Comment From: snicoll

Closed by https://github.com/spring-projects/spring-framework/commit/9ba927215edc7b8f936d6205d8f1c0c10b2202a2